Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Converter.cs
- ValueExpressions.cs
- CornerRadiusConverter.cs
- Attributes.cs
- CompressStream.cs
- HtmlAnchor.cs
- SqlCaseSimplifier.cs
- ExcCanonicalXml.cs
- _IPv6Address.cs
- FamilyMapCollection.cs
- TranslateTransform.cs
- ConfigXmlText.cs
- SqlProvider.cs
- Mapping.cs
- FilterElement.cs
- DbConnectionInternal.cs
- MulticastDelegate.cs
- LinkLabel.cs
- PenCursorManager.cs
- DataServiceQueryException.cs
- Group.cs
- XsdCachingReader.cs
- DispatcherObject.cs
- MediaElementAutomationPeer.cs
- SecurityCriticalDataForSet.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- Bitmap.cs
- MatrixTransform3D.cs
- QilTernary.cs
- XmlTextEncoder.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- FileLevelControlBuilderAttribute.cs
- BinaryFormatterWriter.cs
- Transform.cs
- ProofTokenCryptoHandle.cs
- WebOperationContext.cs
- DocumentApplicationJournalEntry.cs
- XmlTextWriter.cs
- DataServiceExpressionVisitor.cs
- XmlSchemaCollection.cs
- HttpHostedTransportConfiguration.cs
- FlatButtonAppearance.cs
- TextBoxDesigner.cs
- Stylesheet.cs
- XmlAttributes.cs
- SiteMapPath.cs
- KnownAssembliesSet.cs
- MobileContainerDesigner.cs
- HostSecurityManager.cs
- SqlIdentifier.cs
- ToolboxItemWrapper.cs
- ByteAnimationBase.cs
- RefreshPropertiesAttribute.cs
- PropertyMapper.cs
- MemberCollection.cs
- SendActivityDesigner.cs
- FormParameter.cs
- ReferentialConstraintRoleElement.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- MultipleViewPattern.cs
- ContentControl.cs
- ParseHttpDate.cs
- RTLAwareMessageBox.cs
- PropertyKey.cs
- InputLangChangeRequestEvent.cs
- ReflectEventDescriptor.cs
- QilSortKey.cs
- WebPartEditorApplyVerb.cs
- DataRecord.cs
- DesignerVerbCollection.cs
- DurationConverter.cs
- OleDbWrapper.cs
- InstanceNameConverter.cs
- Timeline.cs
- ObjectSet.cs
- SpecialTypeDataContract.cs
- WorkflowOperationErrorHandler.cs
- ListViewEditEventArgs.cs
- DynamicPropertyHolder.cs
- Point3DCollectionConverter.cs
- ReversePositionQuery.cs
- loginstatus.cs
- Light.cs
- ScriptingAuthenticationServiceSection.cs
- MetadataProperty.cs
- CultureInfo.cs
- JapaneseLunisolarCalendar.cs
- SafeEventHandle.cs
- DrawListViewItemEventArgs.cs
- DataGridViewSelectedColumnCollection.cs
- GuidConverter.cs
- TextLineBreak.cs
- SecurityException.cs
- RowUpdatedEventArgs.cs
- Peer.cs
- RegisteredScript.cs
- sqlpipe.cs
- PackageProperties.cs
- CompositeDuplexBindingElement.cs
- BooleanConverter.cs