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
- DataGridPageChangedEventArgs.cs
- FixedDocument.cs
- SettingsSection.cs
- ValidationResult.cs
- NavigationWindowAutomationPeer.cs
- Pair.cs
- GenericXmlSecurityToken.cs
- X509Certificate2Collection.cs
- HandlerFactoryWrapper.cs
- ChannelServices.cs
- RandomNumberGenerator.cs
- Win32.cs
- Base64Encoder.cs
- Floater.cs
- DataSourceSelectArguments.cs
- ErrorWrapper.cs
- _StreamFramer.cs
- StrokeCollection2.cs
- UnsettableComboBox.cs
- HttpRawResponse.cs
- StreamSecurityUpgradeProvider.cs
- ElementHostAutomationPeer.cs
- WebServiceTypeData.cs
- MembershipPasswordException.cs
- CodeExporter.cs
- ProxyWebPartManager.cs
- TypedReference.cs
- EventLog.cs
- UriSection.cs
- ComponentCollection.cs
- XpsSerializerFactory.cs
- SamlAdvice.cs
- CheckBoxStandardAdapter.cs
- DynamicEndpoint.cs
- PositiveTimeSpanValidator.cs
- Win32.cs
- PaintEvent.cs
- SettingsProperty.cs
- CompilerLocalReference.cs
- CacheDependency.cs
- ValidationEventArgs.cs
- ListItem.cs
- NotSupportedException.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- SignedXml.cs
- List.cs
- InvariantComparer.cs
- NegotiateStream.cs
- ByteBufferPool.cs
- XmlSchemaValidator.cs
- EdmProviderManifest.cs
- SoapMessage.cs
- RenderCapability.cs
- SmiEventSink_Default.cs
- DateTimeHelper.cs
- PageCache.cs
- MobileControlsSectionHandler.cs
- TdsParser.cs
- ProcessProtocolHandler.cs
- Attribute.cs
- StickyNoteAnnotations.cs
- SID.cs
- ValidatorCompatibilityHelper.cs
- HiddenField.cs
- XmlElementAttribute.cs
- IndependentAnimationStorage.cs
- IItemContainerGenerator.cs
- DesignerProperties.cs
- Typeface.cs
- TouchFrameEventArgs.cs
- SHA256.cs
- Model3D.cs
- FontFamily.cs
- RemoveStoryboard.cs
- SortedList.cs
- PersonalizationState.cs
- COM2FontConverter.cs
- Figure.cs
- safePerfProviderHandle.cs
- Collection.cs
- Wizard.cs
- ConcatQueryOperator.cs
- XmlDeclaration.cs
- XPathNodeList.cs
- SafeProcessHandle.cs
- TheQuery.cs
- MarshalByRefObject.cs
- CodeSnippetTypeMember.cs
- HttpProxyCredentialType.cs
- ThrowHelper.cs
- SwitchAttribute.cs
- ConsoleCancelEventArgs.cs
- ObjectPersistData.cs
- XmlSequenceWriter.cs
- TimeoutException.cs
- PointHitTestResult.cs
- ThreadStateException.cs
- ServiceHostFactory.cs
- SiteMapPath.cs
- ModelPropertyCollectionImpl.cs