Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / ContextMarshalException.cs / 1 / ContextMarshalException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: ContextMarshalException
**
**
** Purpose: Exception class for attempting to pass an instance through a context
** boundary, when the formal type and the instance's marshal style are
** incompatible.
**
**
=============================================================================*/
namespace System {
using System.Runtime.InteropServices;
using System.Runtime.Remoting;
using System;
using System.Runtime.Serialization;
[Obsolete("ContextMarshalException is obsolete.")]
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable()] public class ContextMarshalException : SystemException {
public ContextMarshalException()
: base(Environment.GetResourceString("Arg_ContextMarshalException")) {
SetErrorCode(__HResults.COR_E_CONTEXTMARSHAL);
}
public ContextMarshalException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_CONTEXTMARSHAL);
}
public ContextMarshalException(String message, Exception inner)
: base(message, inner) {
SetErrorCode(__HResults.COR_E_CONTEXTMARSHAL);
}
protected ContextMarshalException(SerializationInfo info, StreamingContext context) : base(info, context) {
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlDataSourceWizardForm.cs
- DataControlCommands.cs
- HttpApplication.cs
- HostingEnvironmentException.cs
- DisableDpiAwarenessAttribute.cs
- EarlyBoundInfo.cs
- odbcmetadatacollectionnames.cs
- ApplicationProxyInternal.cs
- Logging.cs
- EventSourceCreationData.cs
- TimeSpanParse.cs
- DataGridSortCommandEventArgs.cs
- AppDomainManager.cs
- PasswordTextNavigator.cs
- ResXResourceSet.cs
- ListBindingHelper.cs
- odbcmetadatacollectionnames.cs
- StructureChangedEventArgs.cs
- SizeFConverter.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DataGridViewRowEventArgs.cs
- SwitchLevelAttribute.cs
- DataGridTextColumn.cs
- ObjectConverter.cs
- TextFindEngine.cs
- WinFormsSecurity.cs
- PLINQETWProvider.cs
- SchemaElementLookUpTableEnumerator.cs
- InstanceKeyView.cs
- SerialPinChanges.cs
- ObjectDisposedException.cs
- Path.cs
- GeneralTransform3DTo2DTo3D.cs
- DataObjectCopyingEventArgs.cs
- ValueOfAction.cs
- RawStylusInputCustomData.cs
- XmlSchemaCollection.cs
- XmlSchemaAny.cs
- HMAC.cs
- Version.cs
- XmlSchemaSimpleTypeList.cs
- OutputCache.cs
- WebReference.cs
- ColorConverter.cs
- SessionPageStateSection.cs
- TraceRecord.cs
- XmlElementCollection.cs
- AnimationException.cs
- shaperfactoryquerycachekey.cs
- RepeaterItem.cs
- EventWaitHandle.cs
- DependencyPropertyAttribute.cs
- SyntaxCheck.cs
- MenuStrip.cs
- ProfilePropertyNameValidator.cs
- HandleInitializationContext.cs
- DataGridViewSelectedColumnCollection.cs
- ReferenceEqualityComparer.cs
- TypeHelper.cs
- ToolStripPanelCell.cs
- GestureRecognizer.cs
- UserControl.cs
- HttpModuleCollection.cs
- JsonFormatWriterGenerator.cs
- WsatProxy.cs
- DocumentAutomationPeer.cs
- SqlNode.cs
- SurrogateEncoder.cs
- EventProviderWriter.cs
- CodeSnippetCompileUnit.cs
- Int32CollectionValueSerializer.cs
- UnsafeNativeMethods.cs
- PerformanceCounterPermissionEntryCollection.cs
- ExternalCalls.cs
- HtmlInputPassword.cs
- AttributeQuery.cs
- VarInfo.cs
- TCEAdapterGenerator.cs
- SymmetricCryptoHandle.cs
- InspectionWorker.cs
- indexingfiltermarshaler.cs
- GeneralTransform3D.cs
- ThreadStateException.cs
- HScrollBar.cs
- DuplicateWaitObjectException.cs
- XPathQueryGenerator.cs
- EntityDataSourceChangingEventArgs.cs
- BinaryKeyIdentifierClause.cs
- ValidatedControlConverter.cs
- DesignerAttribute.cs
- Tablet.cs
- MsdtcWrapper.cs
- UITypeEditors.cs
- CapabilitiesSection.cs
- Html32TextWriter.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- SignedInfo.cs
- ServiceDescriptionReflector.cs
- SignalGate.cs
- XamlTemplateSerializer.cs