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
- BridgeDataRecord.cs
- XamlTypeMapperSchemaContext.cs
- DbConnectionStringBuilder.cs
- StyleCollection.cs
- HostingEnvironmentException.cs
- SvcMapFile.cs
- ConsoleKeyInfo.cs
- WebPartsSection.cs
- RecordManager.cs
- ChannelTokenTypeConverter.cs
- InstanceCompleteException.cs
- PropertyManager.cs
- SqlDataAdapter.cs
- NTAccount.cs
- TextElement.cs
- ExpandSegment.cs
- CopyAttributesAction.cs
- DesignTimeTemplateParser.cs
- WebServiceHost.cs
- XmlAnyElementAttribute.cs
- UserControlFileEditor.cs
- BinaryNode.cs
- BookmarkCallbackWrapper.cs
- MetafileHeader.cs
- CreateParams.cs
- CharacterShapingProperties.cs
- KeyedPriorityQueue.cs
- BasicHttpMessageSecurityElement.cs
- CheckBoxPopupAdapter.cs
- MethodBody.cs
- ProxyWebPartConnectionCollection.cs
- DataBoundControlHelper.cs
- HashRepartitionEnumerator.cs
- LockCookie.cs
- ButtonPopupAdapter.cs
- XmlSchemaComplexType.cs
- CookieProtection.cs
- EdmComplexTypeAttribute.cs
- EventSetter.cs
- ConvertEvent.cs
- BitmapMetadata.cs
- FirstQueryOperator.cs
- XmlSchemaInclude.cs
- TypedServiceOperationListItem.cs
- Security.cs
- PasswordTextContainer.cs
- BrowserTree.cs
- FixedDocumentSequencePaginator.cs
- SchemaElementLookUpTable.cs
- WebRequestModulesSection.cs
- DetailsViewCommandEventArgs.cs
- DataGridViewRowPostPaintEventArgs.cs
- ResourceKey.cs
- BuildProviderCollection.cs
- ServiceDescription.cs
- COM2ExtendedTypeConverter.cs
- RawStylusInputCustomData.cs
- DBSchemaTable.cs
- DbConnectionPoolGroup.cs
- pingexception.cs
- SelectionItemProviderWrapper.cs
- FloaterParagraph.cs
- EmptyStringExpandableObjectConverter.cs
- mediapermission.cs
- TimeSpanValidatorAttribute.cs
- Composition.cs
- RepeaterCommandEventArgs.cs
- ResourceCategoryAttribute.cs
- RawMouseInputReport.cs
- CodeAttachEventStatement.cs
- XmlSchemaObject.cs
- XPathDocumentBuilder.cs
- TypeSystem.cs
- ObjectComplexPropertyMapping.cs
- RecommendedAsConfigurableAttribute.cs
- LiteralControl.cs
- LinqExpressionNormalizer.cs
- SignedXml.cs
- SpecularMaterial.cs
- ArrayWithOffset.cs
- CommonDialog.cs
- QilGenerator.cs
- IDReferencePropertyAttribute.cs
- BufferAllocator.cs
- StringUtil.cs
- SourceLineInfo.cs
- SystemBrushes.cs
- ScrollProviderWrapper.cs
- EffectiveValueEntry.cs
- AccessibleObject.cs
- QueryContinueDragEvent.cs
- DataGridViewRowCollection.cs
- SingleAnimationBase.cs
- DataGridSortCommandEventArgs.cs
- VectorAnimationUsingKeyFrames.cs
- XmlSchemaAll.cs
- CodeAccessSecurityEngine.cs
- EmptyCollection.cs
- WebPartConnection.cs
- Char.cs