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
- LiteralControl.cs
- DragEvent.cs
- DocumentOrderQuery.cs
- SecurityCriticalDataForSet.cs
- CodeSubDirectory.cs
- XmlSchemaProviderAttribute.cs
- Codec.cs
- TextEffectResolver.cs
- XmlEncoding.cs
- ValueTypeFieldReference.cs
- String.cs
- FontWeights.cs
- TemplatePropertyEntry.cs
- MenuItemStyleCollection.cs
- SharedPersonalizationStateInfo.cs
- BitmapEffectDrawingContextState.cs
- Transactions.cs
- CodeTypeParameterCollection.cs
- KeyConstraint.cs
- QueryOpeningEnumerator.cs
- MissingManifestResourceException.cs
- PassportIdentity.cs
- XmlSequenceWriter.cs
- ByteRangeDownloader.cs
- ContractCodeDomInfo.cs
- ComplexObject.cs
- XmlConvert.cs
- FixedSchema.cs
- FaultDescription.cs
- ClearTypeHintValidation.cs
- SingletonChannelAcceptor.cs
- EmptyStringExpandableObjectConverter.cs
- shaperfactory.cs
- IndexingContentUnit.cs
- DataTableExtensions.cs
- MulticastNotSupportedException.cs
- LayoutEditorPart.cs
- SharedPersonalizationStateInfo.cs
- RepeatInfo.cs
- OracleBoolean.cs
- MiniParameterInfo.cs
- MessageBox.cs
- ContentTextAutomationPeer.cs
- SettingsPropertyWrongTypeException.cs
- ZoomPercentageConverter.cs
- DoubleLinkList.cs
- IpcChannelHelper.cs
- XmlSerializerFactory.cs
- OptimizerPatterns.cs
- IndexerNameAttribute.cs
- ObjectDataSourceEventArgs.cs
- XmlWhitespace.cs
- PathFigureCollection.cs
- dataSvcMapFileLoader.cs
- SchemaImporter.cs
- CharUnicodeInfo.cs
- TreeNodeEventArgs.cs
- QueryInterceptorAttribute.cs
- MetadataCache.cs
- XmlSchemaSet.cs
- SQLSingleStorage.cs
- FixedSOMSemanticBox.cs
- BooleanKeyFrameCollection.cs
- OperatingSystem.cs
- NamedElement.cs
- BuildManagerHost.cs
- CatchBlock.cs
- ListViewCommandEventArgs.cs
- StaticExtension.cs
- ToolBar.cs
- TextEditorSelection.cs
- _SpnDictionary.cs
- Line.cs
- ContextMenuService.cs
- MsmqDecodeHelper.cs
- BadImageFormatException.cs
- IfAction.cs
- RotateTransform3D.cs
- ToolStripSeparatorRenderEventArgs.cs
- UniqueSet.cs
- AssociationSet.cs
- DockAndAnchorLayout.cs
- HostProtectionException.cs
- ProviderMetadataCachedInformation.cs
- InvokePatternIdentifiers.cs
- TableDetailsRow.cs
- InternalTransaction.cs
- EnumConverter.cs
- SizeAnimation.cs
- _OSSOCK.cs
- serverconfig.cs
- DateTimeFormat.cs
- connectionpool.cs
- _ShellExpression.cs
- CodeConditionStatement.cs
- NestedContainer.cs
- DbConnectionFactory.cs
- DocumentOrderComparer.cs
- DebuggerAttributes.cs
- TimeZoneInfo.cs