Code:
/ FX-1434 / FX-1434 / 1.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
- CodePageEncoding.cs
- BooleanAnimationUsingKeyFrames.cs
- CompositeActivityValidator.cs
- LogicalMethodInfo.cs
- ArrangedElementCollection.cs
- DialogResultConverter.cs
- ModifyActivitiesPropertyDescriptor.cs
- ScrollViewer.cs
- DbDataAdapter.cs
- SafeWaitHandle.cs
- XmlAnyElementAttribute.cs
- SqlWriter.cs
- CurrencyManager.cs
- XmlNodeList.cs
- HttpHandlerAction.cs
- EventLogSession.cs
- DataServiceStreamProviderWrapper.cs
- SQLRoleProvider.cs
- DeploymentSection.cs
- PositiveTimeSpanValidatorAttribute.cs
- ControlDesigner.cs
- PageFunction.cs
- InstanceDescriptor.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ToolStripLocationCancelEventArgs.cs
- IconHelper.cs
- BrowserTree.cs
- DataGridViewLayoutData.cs
- EventBuilder.cs
- XmlSiteMapProvider.cs
- UnitySerializationHolder.cs
- DeclarativeCatalogPartDesigner.cs
- PersonalizationState.cs
- ScrollItemPatternIdentifiers.cs
- DataBindingHandlerAttribute.cs
- ListBoxItemWrapperAutomationPeer.cs
- StyleXamlParser.cs
- MgmtConfigurationRecord.cs
- Expander.cs
- UnauthorizedWebPart.cs
- SctClaimSerializer.cs
- DBSqlParserTable.cs
- ObjectDataSourceView.cs
- ActiveDocumentEvent.cs
- InvalidDataException.cs
- UpDownEvent.cs
- SchemaNotation.cs
- CodeRegionDirective.cs
- _ChunkParse.cs
- IntPtr.cs
- DragDeltaEventArgs.cs
- ConsumerConnectionPointCollection.cs
- EncoderFallback.cs
- Identity.cs
- SafeNativeMethods.cs
- WCFBuildProvider.cs
- CodeBinaryOperatorExpression.cs
- baseaxisquery.cs
- SvcMapFile.cs
- EventWaitHandleSecurity.cs
- ActivityDesignerResources.cs
- NullableDoubleSumAggregationOperator.cs
- Pair.cs
- SchemaTableColumn.cs
- CapabilitiesAssignment.cs
- MarginsConverter.cs
- HttpConfigurationContext.cs
- SuppressMergeCheckAttribute.cs
- FormsAuthenticationUser.cs
- SqlClientPermission.cs
- ContentPlaceHolder.cs
- Guid.cs
- ProcessModule.cs
- LicFileLicenseProvider.cs
- ExtensionSimplifierMarkupObject.cs
- ReadOnlyDataSourceView.cs
- SmtpAuthenticationManager.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ReliableRequestSessionChannel.cs
- HashCodeCombiner.cs
- DrawingContextDrawingContextWalker.cs
- ProcessHostMapPath.cs
- ImportRequest.cs
- RC2CryptoServiceProvider.cs
- SmiGettersStream.cs
- StandardToolWindows.cs
- OrderToken.cs
- DataServiceHost.cs
- FormsAuthenticationEventArgs.cs
- NumberSubstitution.cs
- URI.cs
- NumberAction.cs
- AppDomainProtocolHandler.cs
- CounterCreationDataCollection.cs
- UInt16Converter.cs
- ToolboxBitmapAttribute.cs
- ObjectQuery.cs
- TreeWalker.cs
- DataGridViewDataConnection.cs
- IndexedEnumerable.cs