Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlILConstructAnalyzer.cs
- Timer.cs
- ValidationResult.cs
- PageContentCollection.cs
- MILUtilities.cs
- TraceUtility.cs
- ObjectTag.cs
- PropertyCondition.cs
- XmlNamespaceDeclarationsAttribute.cs
- BlobPersonalizationState.cs
- ResourcesChangeInfo.cs
- SqlEnums.cs
- DataListCommandEventArgs.cs
- ListItem.cs
- ClassDataContract.cs
- CodeIndexerExpression.cs
- RenderingBiasValidation.cs
- IPipelineRuntime.cs
- XmlAnyAttributeAttribute.cs
- KeyValueInternalCollection.cs
- ConcurrentQueue.cs
- MasterPageParser.cs
- XmlTextReaderImpl.cs
- RenderData.cs
- TransformerInfo.cs
- ClonableStack.cs
- ViewGenResults.cs
- ControlBindingsConverter.cs
- CodePrimitiveExpression.cs
- figurelengthconverter.cs
- XamlTreeBuilderBamlRecordWriter.cs
- ByteStreamMessage.cs
- BrowserCapabilitiesFactory.cs
- CqlLexer.cs
- DynamicArgumentDesigner.xaml.cs
- StreamInfo.cs
- HostedTransportConfigurationManager.cs
- StructuredType.cs
- Model3D.cs
- ServiceHttpHandlerFactory.cs
- GACMembershipCondition.cs
- NativeMethods.cs
- InternalControlCollection.cs
- KeyTime.cs
- RawStylusActions.cs
- TabPage.cs
- DrawingImage.cs
- AssemblyBuilder.cs
- _SafeNetHandles.cs
- ActiveXContainer.cs
- HttpRequestTraceRecord.cs
- DBSqlParserColumnCollection.cs
- XmlElementElementCollection.cs
- EndOfStreamException.cs
- JournalEntry.cs
- EntryIndex.cs
- Matrix3D.cs
- Message.cs
- HostSecurityManager.cs
- SortAction.cs
- BitmapSource.cs
- FlowDocumentPaginator.cs
- MetaDataInfo.cs
- TraceHandlerErrorFormatter.cs
- NestedContainer.cs
- GenericsInstances.cs
- DataStorage.cs
- UTF7Encoding.cs
- XmlImplementation.cs
- PieceDirectory.cs
- FullTextLine.cs
- Substitution.cs
- EdmItemError.cs
- Decimal.cs
- SiteMapNodeCollection.cs
- loginstatus.cs
- CacheDependency.cs
- DoubleCollectionValueSerializer.cs
- DataGridViewSelectedColumnCollection.cs
- RequestQueryParser.cs
- ExpressionsCollectionConverter.cs
- HTMLTextWriter.cs
- DataGridViewControlCollection.cs
- Debug.cs
- SizeAnimationUsingKeyFrames.cs
- TypedRowHandler.cs
- AdornerLayer.cs
- FastEncoder.cs
- AttachedPropertyBrowsableAttribute.cs
- InteropTrackingRecord.cs
- XmlSchemaExporter.cs
- PlanCompilerUtil.cs
- FirstMatchCodeGroup.cs
- ConfigsHelper.cs
- ExpressionEvaluator.cs
- HttpApplicationFactory.cs
- HwndAppCommandInputProvider.cs
- XmlAttributeProperties.cs
- ToolboxControl.cs
- DataMemberAttribute.cs