Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / ContextMarshalException.cs / 1305376 / 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 or cannot be marshaled. ** ** This is thrown by the VM when attempts to marshal the exception ** object at the AppDomain transition boundary fails. =============================================================================*/ namespace System { using System.Runtime.InteropServices; using System.Runtime.Remoting; using System; using System.Runtime.Serialization; [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); } [System.Security.SecuritySafeCritical] // auto-generated 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 or cannot be marshaled. ** ** This is thrown by the VM when attempts to marshal the exception ** object at the AppDomain transition boundary fails. =============================================================================*/ namespace System { using System.Runtime.InteropServices; using System.Runtime.Remoting; using System; using System.Runtime.Serialization; [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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- ContextMenuAutomationPeer.cs
- ErrorStyle.cs
- DataRelationPropertyDescriptor.cs
- AnnouncementEndpoint.cs
- WebPartExportVerb.cs
- ElementFactory.cs
- DetailsViewPageEventArgs.cs
- AsyncOperationManager.cs
- BufferedReadStream.cs
- ProfileSettings.cs
- LoginView.cs
- XmlQueryCardinality.cs
- TreeSet.cs
- XmlSchemaFacet.cs
- Control.cs
- SafePEFileHandle.cs
- KeyEvent.cs
- URL.cs
- CasesDictionary.cs
- FrameworkElement.cs
- BreadCrumbTextConverter.cs
- ExpressionEvaluator.cs
- CodeStatement.cs
- DesignerEditorPartChrome.cs
- UnitySerializationHolder.cs
- StandardOleMarshalObject.cs
- TracedNativeMethods.cs
- _UncName.cs
- SafeHandles.cs
- AnimatedTypeHelpers.cs
- QuadraticEase.cs
- XmlWrappingWriter.cs
- BooleanExpr.cs
- CodeDirectiveCollection.cs
- BamlBinaryReader.cs
- IndexOutOfRangeException.cs
- SQLRoleProvider.cs
- ProtocolsConfiguration.cs
- ConfigurationManagerInternalFactory.cs
- DelayedRegex.cs
- CodeNamespaceImportCollection.cs
- COM2TypeInfoProcessor.cs
- RequestTimeoutManager.cs
- StateDesigner.cs
- CategoryGridEntry.cs
- BidOverLoads.cs
- ProcessThreadCollection.cs
- SqlDesignerDataSourceView.cs
- Relationship.cs
- ActivityCodeDomSerializationManager.cs
- AuthenticationSection.cs
- PTManager.cs
- FormsAuthenticationModule.cs
- Highlights.cs
- ProjectionCamera.cs
- TreeViewTemplateSelector.cs
- EventHandlersDesigner.cs
- RayMeshGeometry3DHitTestResult.cs
- X500Name.cs
- EventRouteFactory.cs
- NeutralResourcesLanguageAttribute.cs
- DeclarativeExpressionConditionDeclaration.cs
- NumberSubstitution.cs
- ScalarOps.cs
- WebControlParameterProxy.cs
- UnmanagedMemoryStream.cs
- TableItemStyle.cs
- MappingItemCollection.cs
- XamlPointCollectionSerializer.cs
- TemplateControlBuildProvider.cs
- log.cs
- SystemWebSectionGroup.cs
- SubMenuStyle.cs
- ReaderWriterLockWrapper.cs
- WeakHashtable.cs
- BooleanFunctions.cs
- DLinqColumnProvider.cs
- MouseGesture.cs
- ForEachAction.cs
- ProxyWebPartConnectionCollection.cs
- XmlSchemaInferenceException.cs
- FloaterParaClient.cs
- CfgRule.cs
- ModelService.cs
- xmlsaver.cs
- LinkTarget.cs
- TimeStampChecker.cs
- FieldBuilder.cs
- TypeSystemProvider.cs
- PeerCollaborationPermission.cs
- PeerNearMe.cs
- securestring.cs
- ServiceMetadataExtension.cs
- CuspData.cs
- ECDiffieHellman.cs
- ArgumentNullException.cs
- StringConcat.cs
- SequenceDesignerAccessibleObject.cs
- SQlBooleanStorage.cs
- OleDbParameterCollection.cs