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
- CheckBoxAutomationPeer.cs
- OdbcConnectionHandle.cs
- SqlParameterizer.cs
- ProviderCommandInfoUtils.cs
- DbMetaDataFactory.cs
- Annotation.cs
- ExclusiveCanonicalizationTransform.cs
- SafeNativeMethods.cs
- ServiceOperation.cs
- Rotation3D.cs
- IndexOutOfRangeException.cs
- ExtentKey.cs
- RegularExpressionValidator.cs
- BeginStoryboard.cs
- SafeArrayTypeMismatchException.cs
- PathSegmentCollection.cs
- CqlLexerHelpers.cs
- HttpHandlerAction.cs
- BaseDataBoundControl.cs
- ObjectConverter.cs
- ProfileParameter.cs
- IPPacketInformation.cs
- PassportAuthenticationEventArgs.cs
- UserInitiatedNavigationPermission.cs
- TableSectionStyle.cs
- WebPartConnectionCollection.cs
- BuildProvidersCompiler.cs
- DesignerFrame.cs
- GeneralTransform2DTo3D.cs
- Vector3dCollection.cs
- EntityClassGenerator.cs
- CultureInfoConverter.cs
- SoapFaultCodes.cs
- FormViewUpdateEventArgs.cs
- QuadraticBezierSegment.cs
- EventTrigger.cs
- Listbox.cs
- GenericParameterDataContract.cs
- TdsParserHelperClasses.cs
- XPathBinder.cs
- GetFileNameResult.cs
- HelloOperationCD1AsyncResult.cs
- EdmSchemaAttribute.cs
- TreeViewImageKeyConverter.cs
- IdleTimeoutMonitor.cs
- DefaultTraceListener.cs
- Matrix3D.cs
- MetaColumn.cs
- StylusButton.cs
- UdpDiscoveryEndpoint.cs
- XmlSerializerSection.cs
- LinkGrep.cs
- SectionInformation.cs
- CompilationUtil.cs
- XmlSchemaSimpleContentExtension.cs
- SmiTypedGetterSetter.cs
- Variable.cs
- TabControl.cs
- BindUriHelper.cs
- StateBag.cs
- Token.cs
- RoutingUtilities.cs
- SafeRegistryHandle.cs
- TableLayoutPanelCellPosition.cs
- ReturnType.cs
- UnsafeNativeMethods.cs
- QueryStringParameter.cs
- StringUtil.cs
- UnionExpr.cs
- AutomationEventArgs.cs
- CardSpaceShim.cs
- DataExchangeServiceBinder.cs
- externdll.cs
- UIElement.cs
- InputReferenceExpression.cs
- QilScopedVisitor.cs
- WorkflowInstance.cs
- Pointer.cs
- PointAnimationClockResource.cs
- CngKeyCreationParameters.cs
- PagesSection.cs
- Form.cs
- Deserializer.cs
- BigInt.cs
- Collection.cs
- Package.cs
- SafeNativeMethods.cs
- LingerOption.cs
- LinkConverter.cs
- ConfigurationStrings.cs
- BStrWrapper.cs
- CodeTypeMember.cs
- SweepDirectionValidation.cs
- processwaithandle.cs
- CodeTypeDeclarationCollection.cs
- WebRequestModuleElement.cs
- XmlSerializerAssemblyAttribute.cs
- GuidelineCollection.cs
- ComponentEditorForm.cs
- RealProxy.cs