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
- GlobalItem.cs
- ClosureBinding.cs
- ScriptingJsonSerializationSection.cs
- AssemblyHash.cs
- RegexCapture.cs
- TypeSource.cs
- ListViewTableRow.cs
- DiscoveryMessageProperty.cs
- BlurEffect.cs
- StateMachineSubscription.cs
- QueryAccessibilityHelpEvent.cs
- ConsoleCancelEventArgs.cs
- clipboard.cs
- UniformGrid.cs
- ListBindableAttribute.cs
- AccessDataSourceView.cs
- TextElementEnumerator.cs
- _HeaderInfo.cs
- SiteMapDataSource.cs
- UrlAuthFailedErrorFormatter.cs
- RenameRuleObjectDialog.Designer.cs
- GatewayDefinition.cs
- ComplexPropertyEntry.cs
- Button.cs
- ScriptingJsonSerializationSection.cs
- FacetValues.cs
- Vars.cs
- MouseActionValueSerializer.cs
- TableCellCollection.cs
- StorageBasedPackageProperties.cs
- DriveInfo.cs
- DeleteCardRequest.cs
- LoginUtil.cs
- ApplicationInfo.cs
- Literal.cs
- ValueHandle.cs
- NamespaceQuery.cs
- DataObjectMethodAttribute.cs
- ExpressionLink.cs
- StateDesigner.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- SatelliteContractVersionAttribute.cs
- SystemResourceHost.cs
- SqlMetaData.cs
- NameScopePropertyAttribute.cs
- VirtualizingPanel.cs
- Debugger.cs
- ApplicationManager.cs
- RealizationDrawingContextWalker.cs
- DataGridViewColumnDesigner.cs
- SrgsDocument.cs
- Journaling.cs
- WindowsScroll.cs
- SessionIDManager.cs
- IncrementalReadDecoders.cs
- XmlNodeChangedEventManager.cs
- PieceNameHelper.cs
- RelativeSource.cs
- ZipIOModeEnforcingStream.cs
- CustomErrorsSectionWrapper.cs
- CodeNamespaceImport.cs
- ViewPort3D.cs
- TableCellCollection.cs
- NavigatorOutput.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- AxHost.cs
- Script.cs
- DesignerActionGlyph.cs
- DiscoveryReferences.cs
- BinaryObjectInfo.cs
- TdsParserSafeHandles.cs
- SecurityKeyUsage.cs
- ObjectList.cs
- EditorBrowsableAttribute.cs
- FormClosingEvent.cs
- IdleTimeoutMonitor.cs
- SoapExtensionTypeElementCollection.cs
- ConnectionInterfaceCollection.cs
- EntityException.cs
- PointValueSerializer.cs
- DockAndAnchorLayout.cs
- XmlSerializerOperationBehavior.cs
- Soap12FormatExtensions.cs
- PrimitiveCodeDomSerializer.cs
- ImageCodecInfo.cs
- SecurityHelper.cs
- FilterRepeater.cs
- PersonalizationEntry.cs
- WizardPanel.cs
- WriterOutput.cs
- DataBinder.cs
- ConfigurationManagerHelperFactory.cs
- ReverseInheritProperty.cs
- CodeDOMUtility.cs
- Regex.cs
- PermissionAttributes.cs
- ControlCollection.cs
- VectorCollection.cs
- HttpListenerElement.cs
- ConsoleKeyInfo.cs