Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- precedingsibling.cs
- ResolvedKeyFrameEntry.cs
- FontConverter.cs
- CodeObject.cs
- BitSet.cs
- XmlBoundElement.cs
- WebConfigurationManager.cs
- ComponentRenameEvent.cs
- ClrPerspective.cs
- Point3DAnimationBase.cs
- UndoManager.cs
- DurationConverter.cs
- TableCellCollection.cs
- TextRunTypographyProperties.cs
- InstanceHandleReference.cs
- EnumerableCollectionView.cs
- cookiecollection.cs
- SHA1Managed.cs
- ScopedKnownTypes.cs
- ScrollData.cs
- StandardOleMarshalObject.cs
- CreateBookmarkScope.cs
- BindingExpressionBase.cs
- VirtualizingPanel.cs
- FullTextLine.cs
- PropertyToken.cs
- NetworkInterface.cs
- SyntaxCheck.cs
- TextPatternIdentifiers.cs
- Rotation3DAnimationBase.cs
- propertytag.cs
- NamespaceInfo.cs
- SqlCommandSet.cs
- Nullable.cs
- WebPartZoneCollection.cs
- StylusButtonCollection.cs
- BCLDebug.cs
- SystemSounds.cs
- TdsParameterSetter.cs
- XXXOnTypeBuilderInstantiation.cs
- CommandBinding.cs
- TrackingStringDictionary.cs
- XslTransform.cs
- WebConfigurationFileMap.cs
- DBConcurrencyException.cs
- webeventbuffer.cs
- Vector3dCollection.cs
- WpfKnownMember.cs
- DataControlHelper.cs
- FirstQueryOperator.cs
- ElementInit.cs
- ProxyFragment.cs
- AssemblyInfo.cs
- KeyboardDevice.cs
- EventManager.cs
- CanonicalFontFamilyReference.cs
- ItemCheckedEvent.cs
- URLAttribute.cs
- SizeKeyFrameCollection.cs
- CodeGenerator.cs
- BackStopAuthenticationModule.cs
- FormViewInsertedEventArgs.cs
- NameValuePermission.cs
- ResourceManagerWrapper.cs
- AVElementHelper.cs
- XmlSchemaDocumentation.cs
- ScriptIgnoreAttribute.cs
- BufferedStream.cs
- RepeaterItem.cs
- Unit.cs
- DetailsView.cs
- ConfigurationStrings.cs
- Composition.cs
- SizeValueSerializer.cs
- XamlGridLengthSerializer.cs
- AnnotationDocumentPaginator.cs
- DecimalConverter.cs
- ObjectConverter.cs
- TimeSpanConverter.cs
- DrawingVisual.cs
- BaseUriHelper.cs
- PropertyItemInternal.cs
- SmiTypedGetterSetter.cs
- XmlTextReaderImpl.cs
- ComplexType.cs
- DiscoveryDocumentSerializer.cs
- DataServiceResponse.cs
- ApplicationInfo.cs
- SafeProcessHandle.cs
- DictionarySectionHandler.cs
- ListMarkerSourceInfo.cs
- VirtualPath.cs
- ReflectionTypeLoadException.cs
- LicenseException.cs
- WSDualHttpSecurity.cs
- SessionIDManager.cs
- PageEventArgs.cs
- SequentialOutput.cs
- CompiledXpathExpr.cs
- StateMachineSubscriptionManager.cs