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
- StateDesigner.CommentLayoutGlyph.cs
- ObjectViewQueryResultData.cs
- DependencyObject.cs
- XsltContext.cs
- ModelItemDictionary.cs
- EdmProperty.cs
- XmlDocument.cs
- SchemaImporterExtension.cs
- ZipIOCentralDirectoryBlock.cs
- ConnectionsZoneAutoFormat.cs
- NativeMethods.cs
- DiscoveryReferences.cs
- Latin1Encoding.cs
- DictionaryTraceRecord.cs
- ZoneLinkButton.cs
- DataGridRelationshipRow.cs
- DataRecordObjectView.cs
- CheckoutException.cs
- EntityConnectionStringBuilder.cs
- DBSchemaRow.cs
- Rotation3D.cs
- WindowsPen.cs
- MsmqAuthenticationMode.cs
- Stylesheet.cs
- GridViewRowCollection.cs
- FrameworkRichTextComposition.cs
- ExportException.cs
- DesignerActionListCollection.cs
- SchemaManager.cs
- XmlBinaryReaderSession.cs
- DataGridBoolColumn.cs
- RegionIterator.cs
- ReflectPropertyDescriptor.cs
- WeakEventManager.cs
- Deflater.cs
- XmlSerializableWriter.cs
- BrowsableAttribute.cs
- ContentType.cs
- DWriteFactory.cs
- ThreadPool.cs
- ScrollBarAutomationPeer.cs
- SqlEnums.cs
- SQLBinaryStorage.cs
- TabletDevice.cs
- AttributeInfo.cs
- StaticExtension.cs
- sqlpipe.cs
- IisTraceWebEventProvider.cs
- WindowsButton.cs
- UrlMappingCollection.cs
- DragEvent.cs
- GlyphShapingProperties.cs
- SqlFunctionAttribute.cs
- ComplexBindingPropertiesAttribute.cs
- ConfigXmlDocument.cs
- JsonWriter.cs
- XmlIncludeAttribute.cs
- XmlNotation.cs
- HyperLinkField.cs
- PingOptions.cs
- VisemeEventArgs.cs
- EmbossBitmapEffect.cs
- RecognizedPhrase.cs
- uribuilder.cs
- SoundPlayerAction.cs
- ReaderContextStackData.cs
- TextShapeableCharacters.cs
- ParallelTimeline.cs
- WebBrowserBase.cs
- ButtonPopupAdapter.cs
- TokenBasedSet.cs
- PathTooLongException.cs
- TileBrush.cs
- QueryMath.cs
- PersonalizationDictionary.cs
- RefreshEventArgs.cs
- OutOfProcStateClientManager.cs
- ScrollChangedEventArgs.cs
- FragmentQueryProcessor.cs
- MergePropertyDescriptor.cs
- PersonalizableAttribute.cs
- Rfc4050KeyFormatter.cs
- RijndaelCryptoServiceProvider.cs
- BitmapEncoder.cs
- QueryOperationResponseOfT.cs
- MarginsConverter.cs
- HtmlTernaryTree.cs
- ModelUIElement3D.cs
- UiaCoreProviderApi.cs
- BookmarkScope.cs
- PopupRootAutomationPeer.cs
- DefaultExpressionVisitor.cs
- PersonalizationState.cs
- SafeRegistryHandle.cs
- JsonQNameDataContract.cs
- MenuAdapter.cs
- WindowsComboBox.cs
- DataGridViewImageCell.cs
- PartBasedPackageProperties.cs
- TextTreeTextNode.cs