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
- SecurityKeyIdentifierClause.cs
- AsyncContentLoadedEventArgs.cs
- PatternMatchRules.cs
- SQLBinaryStorage.cs
- Subordinate.cs
- HostDesigntimeLicenseContext.cs
- ValueChangedEventManager.cs
- DemultiplexingClientMessageFormatter.cs
- RuntimeConfigLKG.cs
- FixedNode.cs
- TextContainerChangedEventArgs.cs
- TextDecoration.cs
- CustomErrorsSectionWrapper.cs
- IntMinMaxAggregationOperator.cs
- BinaryNode.cs
- TaskFileService.cs
- TraceFilter.cs
- HtmlProps.cs
- COSERVERINFO.cs
- IncrementalHitTester.cs
- FederatedMessageSecurityOverHttp.cs
- XmlDataSourceNodeDescriptor.cs
- OleDbWrapper.cs
- OleDbPermission.cs
- SafeHandle.cs
- listitem.cs
- DummyDataSource.cs
- ThemeConfigurationDialog.cs
- WindowsGraphics.cs
- BitmapEffectCollection.cs
- KeyNameIdentifierClause.cs
- TargetConverter.cs
- WindowsProgressbar.cs
- TracingConnectionListener.cs
- SessionStateContainer.cs
- CustomErrorsSection.cs
- SingleAnimationUsingKeyFrames.cs
- MouseGestureConverter.cs
- InheritablePropertyChangeInfo.cs
- HtmlInputPassword.cs
- DefaultBindingPropertyAttribute.cs
- ParenthesizePropertyNameAttribute.cs
- DataControlFieldCell.cs
- OleCmdHelper.cs
- NamespaceList.cs
- NameHandler.cs
- HealthMonitoringSection.cs
- TypedElement.cs
- DBCommand.cs
- TreeNodeStyleCollection.cs
- XmlDocumentType.cs
- Control.cs
- XmlSortKeyAccumulator.cs
- ContactManager.cs
- QueryException.cs
- PointLightBase.cs
- PriorityBinding.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- CodeNamespaceImportCollection.cs
- SqlRecordBuffer.cs
- ResourcePool.cs
- TrustManagerPromptUI.cs
- DeclarationUpdate.cs
- SessionParameter.cs
- Expression.cs
- DuplicateMessageDetector.cs
- documentsequencetextview.cs
- RightsManagementProvider.cs
- ListViewItem.cs
- StringValueConverter.cs
- StorageEndPropertyMapping.cs
- TreePrinter.cs
- WindowsScrollBar.cs
- FileUpload.cs
- ZipArchive.cs
- ComplexBindingPropertiesAttribute.cs
- TraceSection.cs
- XmlDataFileEditor.cs
- DashStyle.cs
- ContentPlaceHolderDesigner.cs
- DbConvert.cs
- SwitchDesigner.xaml.cs
- CompilerWrapper.cs
- _ConnectOverlappedAsyncResult.cs
- ClaimSet.cs
- ColorTransformHelper.cs
- UseManagedPresentationElement.cs
- LineMetrics.cs
- PageParser.cs
- FileInfo.cs
- TabControlToolboxItem.cs
- Cursor.cs
- ExpressionBuilder.cs
- StreamInfo.cs
- RequestQueue.cs
- ThreadPool.cs
- DPTypeDescriptorContext.cs
- Visual3DCollection.cs
- TdsParserHelperClasses.cs
- JavaScriptSerializer.cs