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
- EastAsianLunisolarCalendar.cs
- BitmapScalingModeValidation.cs
- KnownBoxes.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- DocumentReferenceCollection.cs
- TableHeaderCell.cs
- SmiXetterAccessMap.cs
- Section.cs
- XmlSchemaCompilationSettings.cs
- GlyphInfoList.cs
- PropertyInformationCollection.cs
- ClientSideProviderDescription.cs
- AxisAngleRotation3D.cs
- ValidationVisibilityAttribute.cs
- AlgoModule.cs
- RouteValueDictionary.cs
- RegisteredScript.cs
- CodeGenerator.cs
- XmlnsCache.cs
- TimeoutStream.cs
- _ListenerRequestStream.cs
- NotConverter.cs
- DetailsViewDeletedEventArgs.cs
- EasingKeyFrames.cs
- Selector.cs
- SafeRegistryKey.cs
- ToolboxControl.cs
- AutomationPropertyInfo.cs
- TransportBindingElementImporter.cs
- MenuRendererStandards.cs
- ExchangeUtilities.cs
- DoubleAnimationBase.cs
- PasswordTextNavigator.cs
- SmiContext.cs
- SymbolDocumentGenerator.cs
- DoubleAnimation.cs
- Button.cs
- HitTestWithPointDrawingContextWalker.cs
- TransactionalPackage.cs
- SchemaImporterExtensionElementCollection.cs
- UrlMappingCollection.cs
- PropertyFilterAttribute.cs
- BinaryObjectWriter.cs
- NamespaceMapping.cs
- Facet.cs
- CommandHelpers.cs
- Token.cs
- StandardBindingElement.cs
- SecurityCriticalDataForSet.cs
- TextDpi.cs
- XmlArrayAttribute.cs
- OleDbMetaDataFactory.cs
- PointCollection.cs
- HandleRef.cs
- EdgeModeValidation.cs
- Transform3D.cs
- StyleReferenceConverter.cs
- VectorAnimationBase.cs
- RegexParser.cs
- _SSPIWrapper.cs
- Activity.cs
- DataGrid.cs
- RadialGradientBrush.cs
- RadioButton.cs
- DataRelationCollection.cs
- AdornedElementPlaceholder.cs
- Transform3DCollection.cs
- HttpApplication.cs
- StyleCollectionEditor.cs
- WindowsAuthenticationEventArgs.cs
- RequiredFieldValidator.cs
- DeviceContexts.cs
- WebBrowsableAttribute.cs
- DataServiceRequest.cs
- AbandonedMutexException.cs
- ExtendedPropertyDescriptor.cs
- TypeValidationEventArgs.cs
- Parsers.cs
- SocketElement.cs
- ReferentialConstraint.cs
- AffineTransform3D.cs
- ChannelCredentials.cs
- cache.cs
- Int16Animation.cs
- ClientProtocol.cs
- DrawListViewColumnHeaderEventArgs.cs
- Int32AnimationUsingKeyFrames.cs
- FormViewDeleteEventArgs.cs
- ContentElement.cs
- ButtonFlatAdapter.cs
- Internal.cs
- Int32EqualityComparer.cs
- DSASignatureFormatter.cs
- TextTabProperties.cs
- Compiler.cs
- TransactionChannelListener.cs
- PrintPreviewDialog.cs
- FolderNameEditor.cs
- BamlRecords.cs
- SqlDataSourceCache.cs