Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SqlCaseSimplifier.cs
- _NetworkingPerfCounters.cs
- MatrixTransform3D.cs
- XmlComplianceUtil.cs
- ImageListDesigner.cs
- ControlDesigner.cs
- NameValueCollection.cs
- Match.cs
- SiteMap.cs
- MetadataStore.cs
- VerticalAlignConverter.cs
- xmlglyphRunInfo.cs
- EventlogProvider.cs
- InvalidOperationException.cs
- AutoResetEvent.cs
- XmlSchemaObjectCollection.cs
- ProfileBuildProvider.cs
- MetadataUtilsSmi.cs
- TypedReference.cs
- TextDecorationCollection.cs
- EventToken.cs
- WaitForChangedResult.cs
- LineVisual.cs
- HashHelper.cs
- Parser.cs
- XmlSerializationReader.cs
- HijriCalendar.cs
- followingsibling.cs
- RequiredFieldValidator.cs
- ClassDataContract.cs
- Certificate.cs
- DateTimeUtil.cs
- Size.cs
- XmlAttributeOverrides.cs
- ScaleTransform.cs
- GreaterThan.cs
- Inflater.cs
- PackageRelationshipCollection.cs
- ChildDocumentBlock.cs
- ButtonChrome.cs
- MissingMethodException.cs
- Collection.cs
- ConstrainedDataObject.cs
- SelectionItemPattern.cs
- EmptyStringExpandableObjectConverter.cs
- TextDocumentView.cs
- Popup.cs
- SynchronizedDispatch.cs
- ConcurrencyBehavior.cs
- AutomationPeer.cs
- SafeFileHandle.cs
- ExpressionHelper.cs
- ByteStream.cs
- PropertyManager.cs
- TreeNodeConverter.cs
- AssertHelper.cs
- ExpressionContext.cs
- ObjectListCommandCollection.cs
- contentDescriptor.cs
- KeyBinding.cs
- Monitor.cs
- Size3D.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- RegisteredScript.cs
- WebUtil.cs
- CompiledQueryCacheEntry.cs
- ThreadAbortException.cs
- PtsCache.cs
- GridViewHeaderRowPresenter.cs
- WindowsListViewGroup.cs
- ZipQueryOperator.cs
- SerializationFieldInfo.cs
- ObjectDesignerDataSourceView.cs
- DateTimeConstantAttribute.cs
- HtmlFormWrapper.cs
- BindingManagerDataErrorEventArgs.cs
- Region.cs
- DesignerLoader.cs
- DivideByZeroException.cs
- PolicyManager.cs
- InternalRelationshipCollection.cs
- BaseDataBoundControl.cs
- ButtonColumn.cs
- PocoPropertyAccessorStrategy.cs
- DataColumnPropertyDescriptor.cs
- XamlStyleSerializer.cs
- WindowsSpinner.cs
- CreateUserErrorEventArgs.cs
- _ListenerRequestStream.cs
- Compiler.cs
- CounterCreationDataConverter.cs
- PtsContext.cs
- FixedTextBuilder.cs
- DbConnectionInternal.cs
- SessionStateSection.cs
- Byte.cs
- ProcessThread.cs
- AttributeUsageAttribute.cs
- HotSpotCollectionEditor.cs
- EditBehavior.cs