Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompressionTracing.cs
- LogExtent.cs
- IOException.cs
- CodeParameterDeclarationExpression.cs
- XmlAttributes.cs
- CodeAssignStatement.cs
- DefaultEventAttribute.cs
- ServiceHostingEnvironment.cs
- basenumberconverter.cs
- AssemblyBuilder.cs
- ObjectAssociationEndMapping.cs
- Rectangle.cs
- ServicePointManager.cs
- HttpProfileBase.cs
- EDesignUtil.cs
- WeakReferenceKey.cs
- ExpandedProjectionNode.cs
- InfocardInteractiveChannelInitializer.cs
- SR.cs
- BaseCollection.cs
- ParserStack.cs
- SqlGenericUtil.cs
- SoundPlayerAction.cs
- PeerName.cs
- XmlNodeChangedEventArgs.cs
- DictionaryContent.cs
- DynamicQueryStringParameter.cs
- MissingSatelliteAssemblyException.cs
- MultiAsyncResult.cs
- ArrayConverter.cs
- PolicyFactory.cs
- XmlCharCheckingWriter.cs
- TypeElementCollection.cs
- RepeatEnumerable.cs
- baseshape.cs
- SapiInterop.cs
- StringOutput.cs
- DefaultTraceListener.cs
- PlanCompilerUtil.cs
- NavigationPropertyEmitter.cs
- AsyncOperationManager.cs
- PreservationFileReader.cs
- CharacterMetrics.cs
- Grid.cs
- PrintPageEvent.cs
- CancellationHandler.cs
- SplitterCancelEvent.cs
- Application.cs
- AssociationSetEnd.cs
- TypeDelegator.cs
- SettingsPropertyIsReadOnlyException.cs
- IsolatedStorageFileStream.cs
- ClientEventManager.cs
- StateChangeEvent.cs
- SuppressIldasmAttribute.cs
- DbMetaDataColumnNames.cs
- SecurityManager.cs
- EventBookmark.cs
- SiteMembershipCondition.cs
- FixedTextBuilder.cs
- EditorZoneBase.cs
- XmlSchemaAttribute.cs
- XmlAttributes.cs
- LocatorPartList.cs
- ClientSideQueueItem.cs
- NetMsmqSecurity.cs
- Label.cs
- OSEnvironmentHelper.cs
- XamlPoint3DCollectionSerializer.cs
- RawStylusInputReport.cs
- SiteMapPathDesigner.cs
- EventPropertyMap.cs
- DynamicMethod.cs
- ComponentEditorPage.cs
- DrawingVisualDrawingContext.cs
- GCHandleCookieTable.cs
- ListDictionaryInternal.cs
- AppLevelCompilationSectionCache.cs
- GeometryConverter.cs
- StylusEventArgs.cs
- InvalidAsynchronousStateException.cs
- Matrix.cs
- DiscoveryMessageSequence.cs
- TraceHandler.cs
- PerfService.cs
- InstanceCreationEditor.cs
- ApplicationGesture.cs
- NamespaceCollection.cs
- EnvelopedPkcs7.cs
- PermissionAttributes.cs
- Mouse.cs
- Geometry.cs
- HybridObjectCache.cs
- Authorization.cs
- HostSecurityManager.cs
- PageCache.cs
- FrameAutomationPeer.cs
- ExpressionReplacer.cs
- MachinePropertyVariants.cs
- FormsAuthenticationEventArgs.cs