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
- HtmlHistory.cs
- Margins.cs
- PropertyRecord.cs
- DictionaryTraceRecord.cs
- ResourceProperty.cs
- CreateInstanceBinder.cs
- HtmlHistory.cs
- StrokeIntersection.cs
- BuildManagerHost.cs
- WebOperationContext.cs
- BamlRecordReader.cs
- WebBrowserNavigatedEventHandler.cs
- GetPageCompletedEventArgs.cs
- LambdaCompiler.Address.cs
- Vector.cs
- CodeAttachEventStatement.cs
- RSAPKCS1SignatureDeformatter.cs
- SurrogateEncoder.cs
- StylusPointDescription.cs
- BufferedGraphics.cs
- Fonts.cs
- Win32.cs
- ApplicationCommands.cs
- Opcode.cs
- CallTemplateAction.cs
- ProfileParameter.cs
- SqlTypesSchemaImporter.cs
- Accessors.cs
- DataGridViewElement.cs
- CompiledIdentityConstraint.cs
- XmlSchemaFacet.cs
- TypeUtils.cs
- Point.cs
- GlobalItem.cs
- ServiceMetadataContractBehavior.cs
- Label.cs
- SiteMapPath.cs
- NotImplementedException.cs
- MenuBindingsEditorForm.cs
- TemplateControlBuildProvider.cs
- IdentityElement.cs
- SQLInt16Storage.cs
- GlobalProxySelection.cs
- StylusDownEventArgs.cs
- StaticContext.cs
- ObjectDataSourceDisposingEventArgs.cs
- CheckBoxStandardAdapter.cs
- HtmlInputFile.cs
- CounterSample.cs
- Dump.cs
- LiteralTextParser.cs
- FontNameConverter.cs
- ListSourceHelper.cs
- TraceSwitch.cs
- WindowsClaimSet.cs
- OutputCacheProfile.cs
- Connector.cs
- FormsAuthenticationUserCollection.cs
- _LoggingObject.cs
- SponsorHelper.cs
- XsdBuilder.cs
- LocatorBase.cs
- MetadataItemCollectionFactory.cs
- QuaternionIndependentAnimationStorage.cs
- ProxyRpc.cs
- NotImplementedException.cs
- ButtonBaseAutomationPeer.cs
- OciEnlistContext.cs
- NotImplementedException.cs
- SqlTypesSchemaImporter.cs
- xmlfixedPageInfo.cs
- DataAccessException.cs
- FunctionQuery.cs
- ZipIOLocalFileHeader.cs
- ActivityCodeDomSerializer.cs
- SystemDiagnosticsSection.cs
- HotCommands.cs
- StorageEntityTypeMapping.cs
- designeractionbehavior.cs
- FilterableAttribute.cs
- MergeFilterQuery.cs
- GeneralTransform3DTo2DTo3D.cs
- Point.cs
- CollectionConverter.cs
- TraceHandler.cs
- RoleGroupCollection.cs
- Root.cs
- ILGenerator.cs
- MediaCommands.cs
- TripleDES.cs
- RTLAwareMessageBox.cs
- ExtendedProtectionPolicyTypeConverter.cs
- ThreadPool.cs
- PowerStatus.cs
- ServiceBehaviorElementCollection.cs
- EDesignUtil.cs
- ChooseAction.cs
- WindowsFormsDesignerOptionService.cs
- HttpInputStream.cs
- DataControlFieldHeaderCell.cs