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
- TransactionalPackage.cs
- DateTimeOffset.cs
- WebPartMenuStyle.cs
- FilePrompt.cs
- XmlImplementation.cs
- Point4D.cs
- GCHandleCookieTable.cs
- ActivityMarkupSerializer.cs
- XPathLexer.cs
- DataGridHeaderBorder.cs
- RawTextInputReport.cs
- VBIdentifierDesigner.xaml.cs
- TextServicesCompartment.cs
- SmtpException.cs
- CollectionConverter.cs
- RsaSecurityTokenAuthenticator.cs
- AppSettingsExpressionBuilder.cs
- XmlCodeExporter.cs
- GridViewHeaderRowPresenter.cs
- EventWaitHandle.cs
- ListChangedEventArgs.cs
- CompositeDataBoundControl.cs
- MailDefinition.cs
- PersonalizationStateQuery.cs
- RowTypePropertyElement.cs
- XmlAttribute.cs
- RC2CryptoServiceProvider.cs
- PeerTransportListenAddressValidator.cs
- ThreadSafeMessageFilterTable.cs
- CreateParams.cs
- CompilationAssemblyInstallComponent.cs
- MetadataPropertyvalue.cs
- UserThread.cs
- Logging.cs
- CatalogZone.cs
- InputElement.cs
- BrushMappingModeValidation.cs
- OutputCacheModule.cs
- PointAnimationUsingKeyFrames.cs
- SortDescription.cs
- TextEditorSelection.cs
- ObjectIDGenerator.cs
- ICspAsymmetricAlgorithm.cs
- ResetableIterator.cs
- TransformedBitmap.cs
- _Rfc2616CacheValidators.cs
- WindowsBrush.cs
- XPathConvert.cs
- ColorContextHelper.cs
- TextEditorCharacters.cs
- TypeSource.cs
- InputBuffer.cs
- QilParameter.cs
- ApplicationServiceManager.cs
- EntityDataSourceSelectedEventArgs.cs
- EdmError.cs
- SizeF.cs
- MimeTypePropertyAttribute.cs
- BrushValueSerializer.cs
- HtmlElementErrorEventArgs.cs
- ProfileGroupSettingsCollection.cs
- HTTPNotFoundHandler.cs
- ExpiredSecurityTokenException.cs
- MetabaseSettings.cs
- Duration.cs
- TextEditorThreadLocalStore.cs
- ContextMenuService.cs
- DataTableMapping.cs
- EntityContainerRelationshipSetEnd.cs
- XmlEntity.cs
- ListParaClient.cs
- BindingMemberInfo.cs
- DataListAutoFormat.cs
- ObjectParameterCollection.cs
- TokenizerHelper.cs
- DataServiceProcessingPipelineEventArgs.cs
- TriggerBase.cs
- CheckoutException.cs
- DragDeltaEventArgs.cs
- Int32RectValueSerializer.cs
- Point.cs
- SessionState.cs
- TreeViewItemAutomationPeer.cs
- MediaEntryAttribute.cs
- CultureSpecificCharacterBufferRange.cs
- TextUtf8RawTextWriter.cs
- _TransmitFileOverlappedAsyncResult.cs
- EventLogPermission.cs
- WebChannelFactory.cs
- ReceiveContextCollection.cs
- codemethodreferenceexpression.cs
- DocumentPageViewAutomationPeer.cs
- StrongBox.cs
- GreenMethods.cs
- FixedSOMLineCollection.cs
- BindingWorker.cs
- ParameterCollection.cs
- _Rfc2616CacheValidators.cs
- AnchorEditor.cs
- IPHostEntry.cs