Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / MarshalDirectiveException.cs / 1305376 / 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);
}
[System.Security.SecuritySafeCritical] // auto-generated
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
- HttpRequest.cs
- Variable.cs
- Geometry3D.cs
- BooleanExpr.cs
- MdbDataFileEditor.cs
- FileUtil.cs
- CommandExpr.cs
- SwitchAttribute.cs
- TransactionValidationBehavior.cs
- MenuBase.cs
- LockCookie.cs
- TypeCacheManager.cs
- TextViewElement.cs
- BackStopAuthenticationModule.cs
- XmlSignatureProperties.cs
- XmlChoiceIdentifierAttribute.cs
- CheckBoxList.cs
- RuleSetDialog.Designer.cs
- GeneralTransform2DTo3D.cs
- WsatProxy.cs
- GroupBoxRenderer.cs
- DataGridViewEditingControlShowingEventArgs.cs
- TimelineCollection.cs
- OrderablePartitioner.cs
- ToolStripHighContrastRenderer.cs
- TemplateAction.cs
- Menu.cs
- SecurityTokenSerializer.cs
- PromptStyle.cs
- COM2TypeInfoProcessor.cs
- VideoDrawing.cs
- WebHttpSecurityModeHelper.cs
- XmlNamespaceDeclarationsAttribute.cs
- WriteFileContext.cs
- SendMailErrorEventArgs.cs
- XmlQueryOutput.cs
- SapiAttributeParser.cs
- Keywords.cs
- ResourcesGenerator.cs
- LicenseException.cs
- PreProcessor.cs
- SplineKeyFrames.cs
- XmlNodeChangedEventArgs.cs
- Signature.cs
- ToolStripItemClickedEventArgs.cs
- CodeSubDirectoriesCollection.cs
- XmlChoiceIdentifierAttribute.cs
- SystemResourceKey.cs
- SqlDataReaderSmi.cs
- CheckBox.cs
- TrackingProfileCache.cs
- StateMachineWorkflowInstance.cs
- SafeArchiveContext.cs
- ActionFrame.cs
- MemberAssignment.cs
- MsmqAuthenticationMode.cs
- TextRunTypographyProperties.cs
- EncryptedReference.cs
- FrameworkTextComposition.cs
- EventDrivenDesigner.cs
- ScalarRestriction.cs
- PersonalizableAttribute.cs
- DynamicDataRouteHandler.cs
- CheckBoxBaseAdapter.cs
- XmlEventCache.cs
- DynamicResourceExtension.cs
- BooleanConverter.cs
- CodePageEncoding.cs
- Debug.cs
- QueryableDataSourceView.cs
- RefType.cs
- PropertyPushdownHelper.cs
- ConfigurationValues.cs
- WindowsBrush.cs
- TagPrefixInfo.cs
- HGlobalSafeHandle.cs
- AsyncOperationManager.cs
- UidManager.cs
- DataStreamFromComStream.cs
- Transform.cs
- ToolStripItemGlyph.cs
- CodeRemoveEventStatement.cs
- DeclarativeCatalogPartDesigner.cs
- ForeignConstraint.cs
- BamlVersionHeader.cs
- SplitterCancelEvent.cs
- ActiveXHost.cs
- SectionUpdates.cs
- WebPartChrome.cs
- FileDialog_Vista.cs
- OleDbInfoMessageEvent.cs
- Pair.cs
- Action.cs
- Renderer.cs
- XmlCountingReader.cs
- HostedTransportConfigurationManager.cs
- RotateTransform.cs
- Filter.cs
- AssemblyAttributes.cs
- Normalization.cs