Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PrintDialog.cs
- SymDocumentType.cs
- CanonicalFontFamilyReference.cs
- httpserverutility.cs
- ProgressBarAutomationPeer.cs
- TrustSection.cs
- AVElementHelper.cs
- TraceUtils.cs
- XmlUTF8TextWriter.cs
- DESCryptoServiceProvider.cs
- AppDomainInfo.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- SamlSubjectStatement.cs
- OpenTypeLayout.cs
- SessionEndedEventArgs.cs
- WinFormsUtils.cs
- GridViewRow.cs
- DetailsViewUpdateEventArgs.cs
- CodeFieldReferenceExpression.cs
- MsmqTransportSecurityElement.cs
- CounterSampleCalculator.cs
- EndPoint.cs
- PersistChildrenAttribute.cs
- MethodExpression.cs
- MergeFailedEvent.cs
- StopStoryboard.cs
- MediaScriptCommandRoutedEventArgs.cs
- MLangCodePageEncoding.cs
- MonikerProxyAttribute.cs
- InputReportEventArgs.cs
- XmlILStorageConverter.cs
- shaperfactoryquerycacheentry.cs
- ParserExtension.cs
- Point3DConverter.cs
- MissingManifestResourceException.cs
- CompiledQuery.cs
- DayRenderEvent.cs
- FieldAccessException.cs
- UserPreference.cs
- TraceUtils.cs
- TTSEvent.cs
- JobInputBins.cs
- ProgressiveCrcCalculatingStream.cs
- XhtmlBasicTextBoxAdapter.cs
- ArgumentValidation.cs
- DataGridCaption.cs
- SequenceFullException.cs
- XsltLibrary.cs
- Zone.cs
- ExclusiveTcpListener.cs
- WebPart.cs
- SchemaReference.cs
- IdentityModelStringsVersion1.cs
- ObjectDataSourceView.cs
- MenuStrip.cs
- SQLMembershipProvider.cs
- PageHandlerFactory.cs
- BuildProvider.cs
- DrawingCollection.cs
- XmlSchemaExporter.cs
- CodePrimitiveExpression.cs
- ButtonFieldBase.cs
- HebrewCalendar.cs
- AppModelKnownContentFactory.cs
- CapiSafeHandles.cs
- TextBlock.cs
- HostingEnvironmentSection.cs
- SiteMap.cs
- DbConnectionPoolGroup.cs
- TableLayoutPanelCellPosition.cs
- RepeatInfo.cs
- OperationFormatUse.cs
- HttpConfigurationContext.cs
- CheckBoxFlatAdapter.cs
- CompilerGlobalScopeAttribute.cs
- HtmlElement.cs
- PropertyGridView.cs
- HttpRawResponse.cs
- ApplicationId.cs
- CacheMemory.cs
- DataGridColumnReorderingEventArgs.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- SQLBytes.cs
- SyntaxCheck.cs
- DecimalAnimationBase.cs
- WindowsAuthenticationEventArgs.cs
- SqlStatistics.cs
- ClientOptions.cs
- CodeExpressionRuleDeclaration.cs
- TextBoxBase.cs
- CharacterBufferReference.cs
- CompilerCollection.cs
- CalendarSelectionChangedEventArgs.cs
- ResourceIDHelper.cs
- ProfileBuildProvider.cs
- XmlSchemaSubstitutionGroup.cs
- XmlNamespaceManager.cs
- XmlUrlResolver.cs
- TransactionScope.cs
- ExecutedRoutedEventArgs.cs