Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ArgIterator.cs
- FileNameEditor.cs
- Interfaces.cs
- DuplexChannel.cs
- WS2007HttpBindingCollectionElement.cs
- XmlConvert.cs
- WebPartExportVerb.cs
- TimeSpanConverter.cs
- DefaultMemberAttribute.cs
- Single.cs
- StaticTextPointer.cs
- LayoutEditorPart.cs
- SiteMapProvider.cs
- InvalidProgramException.cs
- Module.cs
- ContainerVisual.cs
- EnumConverter.cs
- WebPartCatalogAddVerb.cs
- WindowClosedEventArgs.cs
- ClientScriptManagerWrapper.cs
- DataDocumentXPathNavigator.cs
- NamespaceDecl.cs
- Semaphore.cs
- CoTaskMemHandle.cs
- TextTreeNode.cs
- Grant.cs
- EntityCollection.cs
- EventLogPermissionEntry.cs
- ArrayConverter.cs
- ContainerControlDesigner.cs
- FilterQuery.cs
- WebBaseEventKeyComparer.cs
- HuffCodec.cs
- StatusBarDrawItemEvent.cs
- EntryPointNotFoundException.cs
- ApplicationInterop.cs
- DateTimeEditor.cs
- GridViewRowEventArgs.cs
- SchemaSetCompiler.cs
- OracleParameterCollection.cs
- DocumentApplication.cs
- _NativeSSPI.cs
- ValidatorUtils.cs
- Serializer.cs
- PropertyTabAttribute.cs
- WorkflowDefinitionContext.cs
- ZoneIdentityPermission.cs
- SqlBulkCopyColumnMappingCollection.cs
- MethodCallConverter.cs
- MouseActionValueSerializer.cs
- XamlFigureLengthSerializer.cs
- SimpleApplicationHost.cs
- InputProcessorProfilesLoader.cs
- UriTemplateMatchException.cs
- DictationGrammar.cs
- OneWayElement.cs
- DetailsViewUpdateEventArgs.cs
- XamlSerializer.cs
- PageHandlerFactory.cs
- CollectionView.cs
- PropertyInformationCollection.cs
- TypedTableGenerator.cs
- ColorTranslator.cs
- storagemappingitemcollection.viewdictionary.cs
- OracleCommandBuilder.cs
- CrossContextChannel.cs
- MultipleViewPattern.cs
- WsrmMessageInfo.cs
- ComponentChangedEvent.cs
- ReadOnlyAttribute.cs
- TypeExtension.cs
- HtmlInputControl.cs
- ListViewUpdatedEventArgs.cs
- PersonalizationProvider.cs
- XmlParserContext.cs
- ToolBarOverflowPanel.cs
- LayoutTable.cs
- EventData.cs
- RichTextBox.cs
- HttpRuntime.cs
- Update.cs
- DeclaredTypeValidator.cs
- PageCatalogPartDesigner.cs
- StylusPointPropertyId.cs
- ActivityTypeResolver.xaml.cs
- Baml2006ReaderContext.cs
- DBSqlParserTableCollection.cs
- ValueSerializer.cs
- CanonicalFontFamilyReference.cs
- LocalizableResourceBuilder.cs
- ValidationHelpers.cs
- TextParagraph.cs
- MexHttpsBindingElement.cs
- FlowDocumentPaginator.cs
- SecondaryIndex.cs
- ToolStripArrowRenderEventArgs.cs
- ContentElement.cs
- DataGridViewHitTestInfo.cs
- TimeSpanSecondsConverter.cs
- HashMembershipCondition.cs