Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ExitEventArgs.cs
- Light.cs
- ClassicBorderDecorator.cs
- DrawingContextWalker.cs
- CodeExporter.cs
- MemberAssignmentAnalysis.cs
- ImportCatalogPart.cs
- Console.cs
- RealProxy.cs
- Rect.cs
- NamespaceInfo.cs
- XmlCharType.cs
- IQueryable.cs
- COM2ColorConverter.cs
- PropertyGeneratedEventArgs.cs
- MethodExpr.cs
- FixedDocumentPaginator.cs
- Calendar.cs
- GACIdentityPermission.cs
- _ServiceNameStore.cs
- RSAOAEPKeyExchangeDeformatter.cs
- NotifyCollectionChangedEventArgs.cs
- PointCollectionConverter.cs
- URLIdentityPermission.cs
- PageAction.cs
- SecurityTokenRequirement.cs
- XmlWriter.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TraceData.cs
- PolicyException.cs
- HttpFileCollection.cs
- GlyphCollection.cs
- LineGeometry.cs
- TripleDES.cs
- TokenBasedSetEnumerator.cs
- MoveSizeWinEventHandler.cs
- SocketPermission.cs
- HttpWebRequestElement.cs
- HeaderedContentControl.cs
- ManualResetEvent.cs
- CfgSemanticTag.cs
- controlskin.cs
- PasswordPropertyTextAttribute.cs
- AutoGeneratedFieldProperties.cs
- EventManager.cs
- ProxyWebPartManager.cs
- dtdvalidator.cs
- CompiledRegexRunnerFactory.cs
- Collection.cs
- AutomationPropertyInfo.cs
- CodeAttachEventStatement.cs
- SHA256.cs
- HighlightComponent.cs
- SchemaImporter.cs
- followingquery.cs
- ControlPaint.cs
- SigningCredentials.cs
- FontStretchConverter.cs
- AttachedProperty.cs
- Base64Decoder.cs
- selecteditemcollection.cs
- Route.cs
- TextServicesCompartmentContext.cs
- TemplateField.cs
- MonikerUtility.cs
- BindingExpressionUncommonField.cs
- WinEventHandler.cs
- FontUnit.cs
- HttpSessionStateBase.cs
- JpegBitmapDecoder.cs
- Ray3DHitTestResult.cs
- TextTreeObjectNode.cs
- AdCreatedEventArgs.cs
- AddInAttribute.cs
- Point3DCollectionConverter.cs
- EditorBrowsableAttribute.cs
- SoapServerMethod.cs
- WebPartTransformerCollection.cs
- TimeSpanConverter.cs
- DirectoryNotFoundException.cs
- ReferentialConstraint.cs
- MessageBox.cs
- StorageFunctionMapping.cs
- SqlCacheDependencyDatabaseCollection.cs
- PageThemeBuildProvider.cs
- DataGridViewSortCompareEventArgs.cs
- Overlapped.cs
- ExceptionUtil.cs
- Emitter.cs
- RecordConverter.cs
- Image.cs
- ConfigurationElementProperty.cs
- ArgumentException.cs
- AssociationSetMetadata.cs
- TemplatePagerField.cs
- LineInfo.cs
- CompoundFileStreamReference.cs
- NavigationCommands.cs
- OutputCacheSettings.cs
- MediaContext.cs