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
- OracleException.cs
- InternalConfigHost.cs
- FaultReasonText.cs
- TraceListeners.cs
- ConstrainedGroup.cs
- TypefaceCollection.cs
- FontSource.cs
- Executor.cs
- SymbolDocumentGenerator.cs
- XmlSchemaAttributeGroupRef.cs
- Repeater.cs
- SortDescriptionCollection.cs
- ConstraintEnumerator.cs
- DrawItemEvent.cs
- DataGridViewEditingControlShowingEventArgs.cs
- SiteOfOriginPart.cs
- RNGCryptoServiceProvider.cs
- ScriptingAuthenticationServiceSection.cs
- XmlSerializationReader.cs
- MethodImplAttribute.cs
- RemotingAttributes.cs
- XmlSchemaNotation.cs
- XmlBinaryReaderSession.cs
- ArraySortHelper.cs
- XmlSchemaFacet.cs
- InputProcessorProfilesLoader.cs
- ColumnMap.cs
- ChannelReliableSession.cs
- SeparatorAutomationPeer.cs
- DebuggerService.cs
- CustomTypeDescriptor.cs
- ISFTagAndGuidCache.cs
- PopOutPanel.cs
- SectionUpdates.cs
- HttpProfileGroupBase.cs
- HealthMonitoringSectionHelper.cs
- OleDragDropHandler.cs
- QualifierSet.cs
- oledbmetadatacollectionnames.cs
- Int64AnimationBase.cs
- ObjectAnimationBase.cs
- LazyTextWriterCreator.cs
- XmlSchemaParticle.cs
- TraceShell.cs
- FreeIndexList.cs
- EntityAdapter.cs
- GeneralTransform.cs
- UseLicense.cs
- DbMetaDataColumnNames.cs
- DetailsViewRowCollection.cs
- ConnectionManagementSection.cs
- StaticSiteMapProvider.cs
- JsonFormatReaderGenerator.cs
- MarginsConverter.cs
- ToolStripScrollButton.cs
- PrimitiveSchema.cs
- ToolStripScrollButton.cs
- ToolStripDesigner.cs
- HelpKeywordAttribute.cs
- DesignTimeVisibleAttribute.cs
- SqlCachedBuffer.cs
- StringUtil.cs
- BamlResourceDeserializer.cs
- SurrogateChar.cs
- InteropBitmapSource.cs
- ChangeNode.cs
- HttpListenerRequestUriBuilder.cs
- CodePrimitiveExpression.cs
- XhtmlBasicSelectionListAdapter.cs
- ListBoxItemWrapperAutomationPeer.cs
- NullRuntimeConfig.cs
- WindowsProgressbar.cs
- FlowLayoutSettings.cs
- LoginViewDesigner.cs
- EntityDataSourceEntityTypeFilterItem.cs
- ImageListUtils.cs
- XmlSiteMapProvider.cs
- XPathSingletonIterator.cs
- CompensateDesigner.cs
- Binding.cs
- Number.cs
- HttpRequest.cs
- CloudCollection.cs
- OutOfProcStateClientManager.cs
- SimpleFieldTemplateFactory.cs
- EntityDataSourceMemberPath.cs
- DefaultAsyncDataDispatcher.cs
- XamlToRtfWriter.cs
- SchemaImporterExtension.cs
- _FtpControlStream.cs
- AttributeEmitter.cs
- DateTimeUtil.cs
- ScaleTransform.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- CreateUserWizard.cs
- Effect.cs
- BackgroundFormatInfo.cs
- ExpressionBindings.cs
- ScriptMethodAttribute.cs
- Run.cs