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
- InstanceDescriptor.cs
- ProcessModelSection.cs
- ValueQuery.cs
- SeparatorAutomationPeer.cs
- SystemWebSectionGroup.cs
- DataControlPagerLinkButton.cs
- AttachedAnnotationChangedEventArgs.cs
- SmiEventSink_DeferedProcessing.cs
- StringConcat.cs
- _SingleItemRequestCache.cs
- Configuration.cs
- EmbeddedMailObject.cs
- XmlSchemaFacet.cs
- PlainXmlWriter.cs
- UIElementCollection.cs
- WebControl.cs
- DES.cs
- Thickness.cs
- FormView.cs
- HttpServerUtilityWrapper.cs
- UITypeEditor.cs
- ExclusiveNamedPipeTransportManager.cs
- MetadataCache.cs
- Image.cs
- SocketManager.cs
- PropertyStore.cs
- FullTextState.cs
- UpdateCommand.cs
- XmlRawWriter.cs
- WindowsRebar.cs
- StreamInfo.cs
- ScriptReferenceEventArgs.cs
- ExceptionUtil.cs
- SqlDataSourceDesigner.cs
- ContextProperty.cs
- VisemeEventArgs.cs
- ImageClickEventArgs.cs
- PageBreakRecord.cs
- webclient.cs
- HtmlInputPassword.cs
- Point4DValueSerializer.cs
- ObjectItemCachedAssemblyLoader.cs
- ObjectQuery.cs
- PropertyInformationCollection.cs
- CapiSymmetricAlgorithm.cs
- BufferedGraphics.cs
- ExceptionUtil.cs
- RawTextInputReport.cs
- DataMisalignedException.cs
- GeometryHitTestParameters.cs
- CaseInsensitiveComparer.cs
- _Win32.cs
- ShadowGlyph.cs
- PrintDocument.cs
- WorkflowCommandExtensionItem.cs
- TargetException.cs
- RecordManager.cs
- ClassicBorderDecorator.cs
- FileSecurity.cs
- ReturnType.cs
- WebPageTraceListener.cs
- RC2.cs
- WmlPanelAdapter.cs
- ArrayElementGridEntry.cs
- SrgsOneOf.cs
- DefaultTextStore.cs
- AuthorizationRule.cs
- EventBuilder.cs
- ContainerControl.cs
- DataGridViewCellStyleBuilderDialog.cs
- BindingsCollection.cs
- PropertyDescriptorCollection.cs
- XsltContext.cs
- X509SecurityTokenAuthenticator.cs
- FormsAuthenticationCredentials.cs
- DomNameTable.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- __Filters.cs
- CalendarDayButton.cs
- XmlDataSourceView.cs
- FullTextLine.cs
- FrameworkName.cs
- HandledEventArgs.cs
- BufferedGraphicsContext.cs
- CipherData.cs
- UrlPropertyAttribute.cs
- GeometryConverter.cs
- WindowsEditBoxRange.cs
- HwndProxyElementProvider.cs
- SrgsToken.cs
- TraceHwndHost.cs
- MouseEventArgs.cs
- XMLUtil.cs
- OdbcConnectionString.cs
- TextEditorTyping.cs
- EtwTrace.cs
- CodeIdentifiers.cs
- UpdatableGenericsFeature.cs
- MemberListBinding.cs
- RootBrowserWindowProxy.cs