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
- SequentialUshortCollection.cs
- __ConsoleStream.cs
- HtmlInputRadioButton.cs
- Marshal.cs
- PropertyExpression.cs
- ToolConsole.cs
- SamlAuthorizationDecisionStatement.cs
- BoundingRectTracker.cs
- unitconverter.cs
- IERequestCache.cs
- WorkflowService.cs
- XpsInterleavingPolicy.cs
- FindRequestContext.cs
- CommonDialog.cs
- SupportsPreviewControlAttribute.cs
- BrowsableAttribute.cs
- SurrogateEncoder.cs
- DataSourceCache.cs
- SiteOfOriginPart.cs
- TrackingStringDictionary.cs
- ServiceReference.cs
- ServiceParser.cs
- StateDesigner.LayoutSelectionGlyph.cs
- Color.cs
- TcpTransportSecurity.cs
- VBCodeProvider.cs
- NameTable.cs
- CodeTypeConstructor.cs
- TcpAppDomainProtocolHandler.cs
- ScriptResourceMapping.cs
- XslAstAnalyzer.cs
- CalloutQueueItem.cs
- FixedDSBuilder.cs
- MimeTextImporter.cs
- IncrementalReadDecoders.cs
- CqlParser.cs
- ConfigurationPropertyCollection.cs
- CrossContextChannel.cs
- GradientStop.cs
- SqlProvider.cs
- ArrayHelper.cs
- GenericQueueSurrogate.cs
- TraceInternal.cs
- SpotLight.cs
- TouchEventArgs.cs
- HttpCacheVary.cs
- XmlLinkedNode.cs
- OleDbSchemaGuid.cs
- CreateDataSourceDialog.cs
- XslTransform.cs
- Size3D.cs
- TripleDESCryptoServiceProvider.cs
- MultipleViewProviderWrapper.cs
- MachineKeyConverter.cs
- MultiBinding.cs
- Padding.cs
- HwndSourceParameters.cs
- DefaultIfEmptyQueryOperator.cs
- XmlHelper.cs
- DelegatingTypeDescriptionProvider.cs
- ConnectionConsumerAttribute.cs
- XmlUtf8RawTextWriter.cs
- ActivityDesignerAccessibleObject.cs
- SslStreamSecurityUpgradeProvider.cs
- XmlSchemaAnyAttribute.cs
- ChannelManagerBase.cs
- CodeNamespaceImportCollection.cs
- BindingContext.cs
- FixedTextContainer.cs
- Model3DCollection.cs
- AuthenticationSection.cs
- XNodeNavigator.cs
- RenderData.cs
- SoapReflectionImporter.cs
- RenderingBiasValidation.cs
- ConfigPathUtility.cs
- ExpressionBinding.cs
- ParseChildrenAsPropertiesAttribute.cs
- StaticExtension.cs
- FormatSettings.cs
- EncodingInfo.cs
- ExpressionBuilder.cs
- HtmlControlPersistable.cs
- Function.cs
- DataMisalignedException.cs
- BaseValidatorDesigner.cs
- DialogWindow.cs
- FileNotFoundException.cs
- IApplicationTrustManager.cs
- ChtmlTextWriter.cs
- PropertyStore.cs
- ImpersonateTokenRef.cs
- UnknownBitmapEncoder.cs
- EventHandlerList.cs
- StorageBasedPackageProperties.cs
- Function.cs
- SyndicationPerson.cs
- PrePrepareMethodAttribute.cs
- FixedSOMPage.cs
- WebPartCloseVerb.cs