Code:
/ 4.0 / 4.0 / 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.
// ==++==
//
// 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
- SiteMapNodeItem.cs
- GenericUriParser.cs
- ToolStripItemClickedEventArgs.cs
- Part.cs
- ProcessThreadDesigner.cs
- CellNormalizer.cs
- UnmanagedMemoryStream.cs
- CompModHelpers.cs
- SqlClientWrapperSmiStreamChars.cs
- CodePageUtils.cs
- ObjectListItem.cs
- ListItemCollection.cs
- SerializationAttributes.cs
- InstanceData.cs
- SelectionProviderWrapper.cs
- RelationshipEnd.cs
- UIElement3D.cs
- IntegerValidatorAttribute.cs
- RijndaelCryptoServiceProvider.cs
- FileChangesMonitor.cs
- HtmlImage.cs
- OptimizerPatterns.cs
- Geometry3D.cs
- WindowsAuthenticationEventArgs.cs
- URL.cs
- CollectionMarkupSerializer.cs
- ExpressionBuilder.cs
- ControlBuilder.cs
- PartialCachingAttribute.cs
- SafeSystemMetrics.cs
- XmlSchema.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- StatusStrip.cs
- PointLight.cs
- Selector.cs
- Int64AnimationUsingKeyFrames.cs
- CommentEmitter.cs
- DoubleStorage.cs
- ConsumerConnectionPoint.cs
- DSASignatureDeformatter.cs
- OleDbParameter.cs
- XmlILOptimizerVisitor.cs
- Mapping.cs
- ZipFileInfoCollection.cs
- AbstractSvcMapFileLoader.cs
- Double.cs
- BuilderPropertyEntry.cs
- TextCompositionManager.cs
- RepeaterItemCollection.cs
- SchemaCollectionPreprocessor.cs
- RestHandlerFactory.cs
- XmlSchemaParticle.cs
- Guid.cs
- Control.cs
- ObjectTypeMapping.cs
- QueryOperatorEnumerator.cs
- TableRowCollection.cs
- SystemThemeKey.cs
- EnumMember.cs
- MatrixTransform3D.cs
- GridLengthConverter.cs
- CustomAttributeFormatException.cs
- IPEndPointCollection.cs
- PersonalizationStateInfo.cs
- XmlImplementation.cs
- SqlSupersetValidator.cs
- Overlapped.cs
- ChildTable.cs
- IConvertible.cs
- TextSpan.cs
- WpfWebRequestHelper.cs
- ColumnPropertiesGroup.cs
- SQLDoubleStorage.cs
- WebPartUserCapability.cs
- ControlTemplate.cs
- StylusPointProperties.cs
- LineInfo.cs
- HttpWebRequestElement.cs
- TablePatternIdentifiers.cs
- TreeViewImageIndexConverter.cs
- LocatorPart.cs
- SevenBitStream.cs
- Simplifier.cs
- ReliableChannelBinder.cs
- TypeHelper.cs
- AutomationPatternInfo.cs
- PaperSource.cs
- SHA1Managed.cs
- ReverseComparer.cs
- TemporaryBitmapFile.cs
- DnsPermission.cs
- WebBrowserUriTypeConverter.cs
- WebEventCodes.cs
- Ops.cs
- ReflectionUtil.cs
- NotifyInputEventArgs.cs
- SessionEndingCancelEventArgs.cs
- RadioButtonPopupAdapter.cs
- ExecutionTracker.cs
- CompositeDesignerAccessibleObject.cs