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
- PassportAuthentication.cs
- ProgressBar.cs
- BamlRecords.cs
- AutomationPropertyInfo.cs
- DbException.cs
- Crypto.cs
- FileVersionInfo.cs
- DataSetUtil.cs
- OdbcConnectionPoolProviderInfo.cs
- EntityCommandCompilationException.cs
- Shape.cs
- Util.cs
- DataSourceDesigner.cs
- WeakReferenceList.cs
- ToolboxBitmapAttribute.cs
- ControlBuilder.cs
- DataProviderNameConverter.cs
- TextParagraph.cs
- CodeSnippetExpression.cs
- ListBox.cs
- ValidatorUtils.cs
- ConfigurationValidatorBase.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- _NTAuthentication.cs
- DataRowView.cs
- SqlDataSourceFilteringEventArgs.cs
- SmtpDateTime.cs
- ObjectSet.cs
- Type.cs
- OpCopier.cs
- ButtonField.cs
- DictionaryBase.cs
- CodeGeneratorAttribute.cs
- SQLByte.cs
- XPathNodeHelper.cs
- EDesignUtil.cs
- EventTrigger.cs
- SpellerHighlightLayer.cs
- CodeRemoveEventStatement.cs
- RepeaterItemEventArgs.cs
- InkCanvasInnerCanvas.cs
- Bits.cs
- EncoderExceptionFallback.cs
- FormsAuthenticationEventArgs.cs
- SecurityPermission.cs
- WebConfigManager.cs
- FontConverter.cs
- JpegBitmapEncoder.cs
- Rectangle.cs
- GregorianCalendar.cs
- PageCanvasSize.cs
- Point3DValueSerializer.cs
- RadioButtonList.cs
- WindowsStartMenu.cs
- DeflateStream.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- MachineKeyValidationConverter.cs
- WindowsSolidBrush.cs
- unitconverter.cs
- FormViewRow.cs
- XmlTextReaderImplHelpers.cs
- TdsParameterSetter.cs
- OpCodes.cs
- ToolStripMenuItem.cs
- StringDictionaryCodeDomSerializer.cs
- TdsParserStateObject.cs
- OleDbTransaction.cs
- X509AsymmetricSecurityKey.cs
- QueueProcessor.cs
- SqlCacheDependencySection.cs
- SelectionProviderWrapper.cs
- WebRequest.cs
- SqlMultiplexer.cs
- IndicShape.cs
- ColorTranslator.cs
- SchemaDeclBase.cs
- EntityDataSourceState.cs
- AccessText.cs
- Accessible.cs
- SplitterEvent.cs
- XmlSchemaType.cs
- AudioFileOut.cs
- ServicePointManager.cs
- DocumentSequenceHighlightLayer.cs
- ControlHelper.cs
- GuidelineSet.cs
- KeyNotFoundException.cs
- RadioButtonAutomationPeer.cs
- ObjectListCommandEventArgs.cs
- PolicyStatement.cs
- BamlResourceContent.cs
- RoleGroupCollection.cs
- ConfigUtil.cs
- TimelineGroup.cs
- RemoteWebConfigurationHostServer.cs
- NullableFloatMinMaxAggregationOperator.cs
- SqlDataReader.cs
- TextReader.cs
- EditCommandColumn.cs
- WorkflowRuntimeSection.cs