Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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) { } } } // 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
- WebPartsSection.cs
- TableLayoutCellPaintEventArgs.cs
- SecurityPolicySection.cs
- PreviewKeyDownEventArgs.cs
- DoubleAnimationUsingKeyFrames.cs
- mediaeventshelper.cs
- Crypto.cs
- FileLevelControlBuilderAttribute.cs
- SizeAnimationClockResource.cs
- MouseButton.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- ToolStripRenderer.cs
- UnaryQueryOperator.cs
- SqlDataSourceStatusEventArgs.cs
- GradientStopCollection.cs
- PreloadHost.cs
- VoiceObjectToken.cs
- ValidatingPropertiesEventArgs.cs
- EventLogConfiguration.cs
- FormsAuthenticationUser.cs
- shaperfactoryquerycacheentry.cs
- DataGridTextBox.cs
- ReturnType.cs
- CurrentChangedEventManager.cs
- NavigationProperty.cs
- infer.cs
- ToolBarButton.cs
- DebugView.cs
- RequestCacheValidator.cs
- SingleSelectRootGridEntry.cs
- ReferentialConstraint.cs
- SqlCaseSimplifier.cs
- LoginUtil.cs
- DbProviderSpecificTypePropertyAttribute.cs
- MouseCaptureWithinProperty.cs
- Pen.cs
- SegmentInfo.cs
- ListItemsCollectionEditor.cs
- ColorAnimationUsingKeyFrames.cs
- XmlCountingReader.cs
- UserInitiatedNavigationPermission.cs
- OrderingInfo.cs
- TextBoxBase.cs
- DoubleCollectionConverter.cs
- CollectionContainer.cs
- followingquery.cs
- IOException.cs
- BaseCollection.cs
- HostedHttpRequestAsyncResult.cs
- DbDataAdapter.cs
- ContextInformation.cs
- DataGridParentRows.cs
- CodeValidator.cs
- MD5.cs
- DynamicObject.cs
- ProfileGroupSettingsCollection.cs
- UpdatableGenericsFeature.cs
- WebPartEditorApplyVerb.cs
- FrameworkElementFactory.cs
- LinearKeyFrames.cs
- DSASignatureDeformatter.cs
- CheckBoxPopupAdapter.cs
- Parser.cs
- InstanceKeyNotReadyException.cs
- EventSourceCreationData.cs
- Menu.cs
- CategoryGridEntry.cs
- SessionStateUtil.cs
- ScriptManager.cs
- SqlFactory.cs
- Attributes.cs
- MailBnfHelper.cs
- ClockController.cs
- InternalUserCancelledException.cs
- DoubleConverter.cs
- X509CertificateClaimSet.cs
- HelpExampleGenerator.cs
- RowSpanVector.cs
- WebEventCodes.cs
- ColumnBinding.cs
- ListViewItemSelectionChangedEvent.cs
- EntityTypeBase.cs
- PtsHelper.cs
- EdmValidator.cs
- EnumUnknown.cs
- NativeMethods.cs
- UriScheme.cs
- StorageInfo.cs
- InfoCardUIAgent.cs
- HttpCookieCollection.cs
- DoubleUtil.cs
- Int32CollectionValueSerializer.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SecurityElement.cs
- EntryWrittenEventArgs.cs
- DateTimeOffset.cs
- InstanceStore.cs
- ObjectViewQueryResultData.cs
- PublisherIdentityPermission.cs
- PageRequestManager.cs