Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / MarshalDirectiveException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- WorkflowMarkupElementEventArgs.cs
- FactoryRecord.cs
- cookiecollection.cs
- XmlCDATASection.cs
- XmlNotation.cs
- Timer.cs
- ListBase.cs
- SecurityKeyIdentifier.cs
- FtpWebResponse.cs
- CatalogPartDesigner.cs
- UnsafeNativeMethods.cs
- BufferedReadStream.cs
- UriSection.cs
- AspCompat.cs
- StylusTouchDevice.cs
- TableLayoutCellPaintEventArgs.cs
- SystemGatewayIPAddressInformation.cs
- DelegateSerializationHolder.cs
- DateBoldEvent.cs
- ExtendedPropertyCollection.cs
- DBParameter.cs
- ModuleElement.cs
- ButtonFieldBase.cs
- Triplet.cs
- PickDesigner.xaml.cs
- TextTreeText.cs
- HtmlControl.cs
- ButtonRenderer.cs
- TextSchema.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- Subtree.cs
- InfoCardSymmetricAlgorithm.cs
- WindowsBrush.cs
- InputLangChangeEvent.cs
- RegistryKey.cs
- MenuItemBinding.cs
- EngineSite.cs
- SafeEventLogReadHandle.cs
- UITypeEditor.cs
- SchemaElementLookUpTable.cs
- ResourceExpressionEditor.cs
- HttpRuntimeSection.cs
- SemaphoreSecurity.cs
- ToolboxService.cs
- NamedElement.cs
- DataPagerFieldItem.cs
- FixedSOMGroup.cs
- BamlReader.cs
- DataGridViewDataErrorEventArgs.cs
- UnorderedHashRepartitionStream.cs
- XmlMemberMapping.cs
- RawUIStateInputReport.cs
- FreeFormDesigner.cs
- DeploymentSection.cs
- AspNetSynchronizationContext.cs
- CompositeScriptReferenceEventArgs.cs
- XmlSchemaSimpleTypeList.cs
- XmlMembersMapping.cs
- Token.cs
- ToolStripSplitButton.cs
- IdnMapping.cs
- DataGridViewIntLinkedList.cs
- FormViewCommandEventArgs.cs
- Visitors.cs
- CodeGroup.cs
- RowBinding.cs
- HttpResponse.cs
- NetStream.cs
- StorageBasedPackageProperties.cs
- Ipv6Element.cs
- Pair.cs
- Baml2006ReaderContext.cs
- Visual.cs
- ProviderConnectionPoint.cs
- Condition.cs
- CutCopyPasteHelper.cs
- FixedPageAutomationPeer.cs
- OdbcErrorCollection.cs
- TypeCodeDomSerializer.cs
- WebContext.cs
- StatusBar.cs
- Parser.cs
- PersonalizationStateInfo.cs
- ObjectListCommandsPage.cs
- IPipelineRuntime.cs
- HistoryEventArgs.cs
- HtmlInputHidden.cs
- ClientType.cs
- ScriptHandlerFactory.cs
- DesignTimeDataBinding.cs
- httpserverutility.cs
- GPStream.cs
- MenuCommand.cs
- BuildProviderCollection.cs
- SqlEnums.cs
- RemotingAttributes.cs
- ConfigPathUtility.cs
- JavaScriptString.cs
- DataObjectPastingEventArgs.cs
- TextBounds.cs