Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- MetadataPropertyCollection.cs
- RenderDataDrawingContext.cs
- VirtualDirectoryMapping.cs
- MappedMetaModel.cs
- FileRegion.cs
- ToolboxItemCollection.cs
- WebException.cs
- securitymgrsite.cs
- RadioButtonAutomationPeer.cs
- XmlWriter.cs
- util.cs
- SynchronizationLockException.cs
- HwndProxyElementProvider.cs
- TemplateControlParser.cs
- DataBoundLiteralControl.cs
- OperationCanceledException.cs
- RequestQueryParser.cs
- TranslateTransform3D.cs
- XmlSchemaAppInfo.cs
- datacache.cs
- InputMethodStateChangeEventArgs.cs
- ChangePassword.cs
- CDSsyncETWBCLProvider.cs
- ContentElement.cs
- CorrelationResolver.cs
- ParallelTimeline.cs
- WSSecurityXXX2005.cs
- FileDialog_Vista.cs
- XhtmlBasicLabelAdapter.cs
- IOException.cs
- _NetRes.cs
- DragDropHelper.cs
- GridSplitterAutomationPeer.cs
- IntellisenseTextBox.designer.cs
- Number.cs
- ResourceContainer.cs
- HttpHandlerAction.cs
- BitmapSizeOptions.cs
- datacache.cs
- HexParser.cs
- ViewCellRelation.cs
- ReflectionHelper.cs
- EditingScopeUndoUnit.cs
- DesignerCategoryAttribute.cs
- DesignerTransaction.cs
- SimplePropertyEntry.cs
- DesignObjectWrapper.cs
- StrongNameKeyPair.cs
- oledbmetadatacollectionnames.cs
- BulletDecorator.cs
- SecurityCriticalDataForSet.cs
- BrowserTree.cs
- WebPartTransformerCollection.cs
- DataGridColumnCollectionEditor.cs
- SQLGuid.cs
- DataServices.cs
- DesignDataSource.cs
- QueryCacheManager.cs
- DataComponentMethodGenerator.cs
- TextWriter.cs
- ContainerParagraph.cs
- ExtendedProperty.cs
- TextEditorTyping.cs
- Invariant.cs
- ConnectionAcceptor.cs
- WebPartDisplayModeEventArgs.cs
- ObjectFullSpanRewriter.cs
- Nodes.cs
- ControlPaint.cs
- TableRow.cs
- NullableBoolConverter.cs
- PackagePart.cs
- ObjectSpanRewriter.cs
- HtmlPageAdapter.cs
- GeneratedView.cs
- UnsafeNativeMethods.cs
- SqlUserDefinedTypeAttribute.cs
- IItemContainerGenerator.cs
- GPPOINT.cs
- ContextStaticAttribute.cs
- XmlExtensionFunction.cs
- FlowLayoutSettings.cs
- MruCache.cs
- AnnotationStore.cs
- ButtonBase.cs
- XmlRawWriterWrapper.cs
- AtomServiceDocumentSerializer.cs
- MarginsConverter.cs
- SQLDecimal.cs
- Schedule.cs
- Options.cs
- Bidi.cs
- PolicyManager.cs
- SHA1.cs
- XmlRawWriter.cs
- FormatSettings.cs
- HostingEnvironmentException.cs
- PolyQuadraticBezierSegment.cs
- DecoratedNameAttribute.cs
- TextRange.cs