Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Runtime / InteropServices / MarshalDirectiveException.cs / 1 / MarshalDirectiveException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: MarshalDirectiveException ** ** Purpose: This exception is thrown when the marshaller encounters a signature ** that has an invalid MarshalAs CA for a given argument or is not ** supported. ** =============================================================================*/ namespace System.Runtime.InteropServices { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class MarshalDirectiveException : SystemException { public MarshalDirectiveException() : base(Environment.GetResourceString("Arg_MarshalDirectiveException")) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } public MarshalDirectiveException(String message) : base(message) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } public MarshalDirectiveException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } protected MarshalDirectiveException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: MarshalDirectiveException ** ** Purpose: This exception is thrown when the marshaller encounters a signature ** that has an invalid MarshalAs CA for a given argument or is not ** supported. ** =============================================================================*/ namespace System.Runtime.InteropServices { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class MarshalDirectiveException : SystemException { public MarshalDirectiveException() : base(Environment.GetResourceString("Arg_MarshalDirectiveException")) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } public MarshalDirectiveException(String message) : base(message) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } public MarshalDirectiveException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } protected MarshalDirectiveException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SystemColorTracker.cs
- DetailsViewInsertedEventArgs.cs
- SharedStatics.cs
- UnionCodeGroup.cs
- ScrollItemPattern.cs
- FastEncoder.cs
- CodePrimitiveExpression.cs
- TrimSurroundingWhitespaceAttribute.cs
- TextEditorMouse.cs
- DynamicRenderer.cs
- ToolStripOverflow.cs
- ItemsPresenter.cs
- EntitySetBaseCollection.cs
- Baml2006SchemaContext.cs
- HwndMouseInputProvider.cs
- Panel.cs
- ToolboxDataAttribute.cs
- DataGridViewLinkColumn.cs
- ImageKeyConverter.cs
- CustomWebEventKey.cs
- LocalizationParserHooks.cs
- TransactionFlowElement.cs
- OuterGlowBitmapEffect.cs
- Set.cs
- MarkupProperty.cs
- EncryptedType.cs
- ArrangedElement.cs
- TagNameToTypeMapper.cs
- ResourceIDHelper.cs
- SettingsPropertyIsReadOnlyException.cs
- SystemIPInterfaceStatistics.cs
- DataBindingExpressionBuilder.cs
- x509utils.cs
- JapaneseCalendar.cs
- DataBindingCollection.cs
- XmlWellformedWriter.cs
- GridViewUpdateEventArgs.cs
- Rect3DValueSerializer.cs
- DNS.cs
- MemoryStream.cs
- XMLDiffLoader.cs
- ReadOnlyCollection.cs
- RawKeyboardInputReport.cs
- DeviceSpecificDesigner.cs
- SoapObjectInfo.cs
- TextPattern.cs
- BufferBuilder.cs
- Socket.cs
- GridSplitterAutomationPeer.cs
- LoadWorkflowAsyncResult.cs
- EventLogEntry.cs
- Authorization.cs
- DeflateEmulationStream.cs
- ToolStripSplitButton.cs
- Metadata.cs
- BamlMapTable.cs
- UserUseLicenseDictionaryLoader.cs
- FocusTracker.cs
- ControlPaint.cs
- SqlNode.cs
- WebPartTransformerCollection.cs
- RoleServiceManager.cs
- assemblycache.cs
- ThreadStateException.cs
- ProcessHostMapPath.cs
- MemoryResponseElement.cs
- LinkClickEvent.cs
- WebPartHeaderCloseVerb.cs
- RtType.cs
- StyleXamlParser.cs
- WindowPattern.cs
- ColorConvertedBitmap.cs
- ImageSourceValueSerializer.cs
- PreviewKeyDownEventArgs.cs
- DocumentAutomationPeer.cs
- Point3DAnimationBase.cs
- ImmComposition.cs
- DataServiceHostFactory.cs
- QilGeneratorEnv.cs
- EventLogEntryCollection.cs
- ComNativeDescriptor.cs
- RegexTree.cs
- TemplateBindingExpression.cs
- RawStylusInputReport.cs
- DataGridBeginningEditEventArgs.cs
- MulticastOption.cs
- AuthenticatingEventArgs.cs
- HorizontalAlignConverter.cs
- TransactionInterop.cs
- SBCSCodePageEncoding.cs
- NotificationContext.cs
- TCEAdapterGenerator.cs
- InkCanvas.cs
- CollectionsUtil.cs
- HtmlToClrEventProxy.cs
- CodeIndexerExpression.cs
- Point4D.cs
- XPathNodeList.cs
- HitTestFilterBehavior.cs
- CalendarDay.cs