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
- SessionPageStatePersister.cs
- StylusPlugInCollection.cs
- CodeTypeParameterCollection.cs
- ScrollEventArgs.cs
- Utils.cs
- RegexGroupCollection.cs
- PtsHost.cs
- Point3DCollection.cs
- EmissiveMaterial.cs
- DefaultAsyncDataDispatcher.cs
- Models.cs
- ImportOptions.cs
- EntityDataSourceContextCreatingEventArgs.cs
- RegionIterator.cs
- WindowsStartMenu.cs
- WebPartCatalogCloseVerb.cs
- DataGridViewSortCompareEventArgs.cs
- _FtpControlStream.cs
- AppSettingsReader.cs
- DataServiceProviderWrapper.cs
- SecurityHeaderTokenResolver.cs
- IItemContainerGenerator.cs
- SmtpSection.cs
- NumberSubstitution.cs
- SchemaAttDef.cs
- PathSegment.cs
- SafeCertificateStore.cs
- ClickablePoint.cs
- SqlAliaser.cs
- DropShadowBitmapEffect.cs
- CertificateElement.cs
- Token.cs
- Wildcard.cs
- ImageBrush.cs
- InputMethod.cs
- AccessDataSource.cs
- UnitySerializationHolder.cs
- EntityCollection.cs
- ProfilePropertySettings.cs
- DrawingContextDrawingContextWalker.cs
- Graph.cs
- AggregatePushdown.cs
- CurrentChangingEventArgs.cs
- WSDualHttpSecurityElement.cs
- SecuritySessionSecurityTokenProvider.cs
- FontDriver.cs
- FaultReasonText.cs
- AmbiguousMatchException.cs
- HuffCodec.cs
- RuntimeConfig.cs
- BamlWriter.cs
- TypeName.cs
- BinaryFormatter.cs
- FontNameConverter.cs
- UnhandledExceptionEventArgs.cs
- TypedRowHandler.cs
- HealthMonitoringSectionHelper.cs
- ImageSource.cs
- ApplicationId.cs
- InfoCardTraceRecord.cs
- ContainsRowNumberChecker.cs
- ProcessModelSection.cs
- ConfigXmlText.cs
- ConstantSlot.cs
- CompilationUnit.cs
- FontFaceLayoutInfo.cs
- RoleService.cs
- SQLSingle.cs
- XmlDataSourceDesigner.cs
- HierarchicalDataSourceControl.cs
- PeerNameRecord.cs
- SyncOperationState.cs
- ZipIOLocalFileBlock.cs
- DbParameterCollectionHelper.cs
- XmlDictionaryReader.cs
- RepeaterCommandEventArgs.cs
- CryptoConfig.cs
- DecimalConverter.cs
- BindingContext.cs
- Relationship.cs
- DataTableExtensions.cs
- RawAppCommandInputReport.cs
- ComAdminInterfaces.cs
- OleDbRowUpdatedEvent.cs
- PrimaryKeyTypeConverter.cs
- WebControlAdapter.cs
- isolationinterop.cs
- ImageMap.cs
- Color.cs
- Comparer.cs
- SynchronousChannelMergeEnumerator.cs
- CurrentChangingEventArgs.cs
- MemberProjectionIndex.cs
- TextRangeSerialization.cs
- Translator.cs
- ClientUtils.cs
- WsdlContractConversionContext.cs
- ContractMapping.cs
- PrimitiveList.cs
- XPathNode.cs