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
- ConsumerConnectionPointCollection.cs
- ThemeDirectoryCompiler.cs
- PolicyManager.cs
- DefaultValueConverter.cs
- WebPartDisplayModeCollection.cs
- Bits.cs
- Calendar.cs
- EncoderParameters.cs
- MultiView.cs
- PackagePart.cs
- EventMap.cs
- Message.cs
- TextEditor.cs
- DataGridViewTopLeftHeaderCell.cs
- StreamReader.cs
- DateTimeStorage.cs
- BamlRecordReader.cs
- DBBindings.cs
- DesignerActionKeyboardBehavior.cs
- XmlDataDocument.cs
- util.cs
- MetadataCache.cs
- PieceNameHelper.cs
- HttpWebResponse.cs
- cryptoapiTransform.cs
- XmlSchemaChoice.cs
- OdbcConnection.cs
- TableLayoutPanel.cs
- PeekCompletedEventArgs.cs
- PartialToken.cs
- CodeMemberEvent.cs
- OrderablePartitioner.cs
- HttpProfileGroupBase.cs
- CollectionViewSource.cs
- CompensatableTransactionScopeActivity.cs
- JsonSerializer.cs
- ComponentDispatcher.cs
- RepeaterDataBoundAdapter.cs
- DebugHandleTracker.cs
- TemplateBaseAction.cs
- EventWaitHandle.cs
- WinCategoryAttribute.cs
- EntityViewGenerator.cs
- LinkArea.cs
- StylusPoint.cs
- ExistsInCollection.cs
- ConnectionManagementSection.cs
- SelectionUIService.cs
- HttpWebRequest.cs
- ModuleConfigurationInfo.cs
- QueryableDataSource.cs
- TimeSpanValidator.cs
- TextBlock.cs
- UnsafeNativeMethods.cs
- SqlNode.cs
- Vector3DAnimation.cs
- ComponentResourceKey.cs
- MenuItemBinding.cs
- CountdownEvent.cs
- Inflater.cs
- BitmapCodecInfoInternal.cs
- ProbeDuplexAsyncResult.cs
- FontFaceLayoutInfo.cs
- ListViewEditEventArgs.cs
- MenuEventArgs.cs
- EqualityComparer.cs
- ToolBarButtonDesigner.cs
- CodeSnippetCompileUnit.cs
- WebPartMenuStyle.cs
- LinkClickEvent.cs
- DataGridColumnReorderingEventArgs.cs
- ExpressionLink.cs
- sitestring.cs
- DeferredReference.cs
- ThousandthOfEmRealDoubles.cs
- PartialArray.cs
- ImportDesigner.xaml.cs
- UserControl.cs
- OrderedHashRepartitionEnumerator.cs
- IProvider.cs
- RenderContext.cs
- DrawingContextDrawingContextWalker.cs
- CompositeDuplexBindingElement.cs
- nulltextnavigator.cs
- TextTreeText.cs
- DetailsViewCommandEventArgs.cs
- SafeArrayTypeMismatchException.cs
- DesignerLinkAdapter.cs
- WebPartExportVerb.cs
- IBuiltInEvidence.cs
- ComboBox.cs
- Variable.cs
- SwitchElementsCollection.cs
- RegisteredScript.cs
- RealizationDrawingContextWalker.cs
- XmlUnspecifiedAttribute.cs
- DayRenderEvent.cs
- MetroSerializationManager.cs
- RoleManagerModule.cs
- Debugger.cs