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
- VoiceInfo.cs
- StateWorkerRequest.cs
- MailMessageEventArgs.cs
- PermissionSetTriple.cs
- ResourcePool.cs
- EnumDataContract.cs
- TypefaceMetricsCache.cs
- GeneralTransformGroup.cs
- InvalidContentTypeException.cs
- RequestCacheValidator.cs
- X509Utils.cs
- X509SecurityTokenProvider.cs
- Invariant.cs
- NotifyIcon.cs
- UIElementIsland.cs
- Publisher.cs
- HttpProfileBase.cs
- SQLDecimal.cs
- BreakRecordTable.cs
- DiagnosticTraceRecords.cs
- Point3DKeyFrameCollection.cs
- Statements.cs
- DataGridRow.cs
- XmlEncoding.cs
- SmtpFailedRecipientsException.cs
- RayMeshGeometry3DHitTestResult.cs
- WhereaboutsReader.cs
- RegexCapture.cs
- AdapterUtil.cs
- ConnectionConsumerAttribute.cs
- TypeInitializationException.cs
- XamlBrushSerializer.cs
- QuotaThrottle.cs
- DefaultEventAttribute.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- ProxyGenerator.cs
- TreeBuilderBamlTranslator.cs
- WebPartZoneCollection.cs
- EncodingDataItem.cs
- SafePointer.cs
- FieldToken.cs
- ErrorProvider.cs
- DBPropSet.cs
- ControlPaint.cs
- ZipIOExtraField.cs
- ValueCollectionParameterReader.cs
- DoubleAnimationBase.cs
- Propagator.ExtentPlaceholderCreator.cs
- Parser.cs
- CollaborationHelperFunctions.cs
- ControllableStoryboardAction.cs
- URIFormatException.cs
- EditorPartCollection.cs
- ConstructorNeedsTagAttribute.cs
- Timer.cs
- PlaceHolder.cs
- SHA384Managed.cs
- HttpHandlerAction.cs
- ExpressionConverter.cs
- PictureBox.cs
- NameTable.cs
- XmlDocumentSerializer.cs
- CodeMemberProperty.cs
- PeerToPeerException.cs
- RadioButtonFlatAdapter.cs
- DataContractSerializerElement.cs
- Line.cs
- ImageCodecInfo.cs
- HashCryptoHandle.cs
- InstanceContext.cs
- Header.cs
- AttributeCollection.cs
- QuaternionAnimation.cs
- SchemaType.cs
- StylusButtonEventArgs.cs
- SQLSingleStorage.cs
- HttpVersion.cs
- DataControlFieldHeaderCell.cs
- ButtonBase.cs
- BitmapEffectInput.cs
- JoinGraph.cs
- Attributes.cs
- OpenFileDialog.cs
- SystemColorTracker.cs
- InputLanguageCollection.cs
- CodeStatementCollection.cs
- ResolveCriteria11.cs
- ListDictionary.cs
- CommonProperties.cs
- IndexingContentUnit.cs
- XamlVector3DCollectionSerializer.cs
- BinaryObjectWriter.cs
- InlineCollection.cs
- BindingList.cs
- ProviderManager.cs
- mil_sdk_version.cs
- MediaPlayerState.cs
- FormViewActionList.cs
- nulltextnavigator.cs
- COAUTHIDENTITY.cs