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
- Descriptor.cs
- GrammarBuilder.cs
- DBDataPermissionAttribute.cs
- ProfileGroupSettings.cs
- XmlCodeExporter.cs
- FormViewCommandEventArgs.cs
- InternalPermissions.cs
- NotifyInputEventArgs.cs
- MarshalByValueComponent.cs
- WebBrowserPermission.cs
- XsltCompileContext.cs
- WebRequestModuleElementCollection.cs
- DataExpression.cs
- BuilderPropertyEntry.cs
- followingsibling.cs
- CompilerGeneratedAttribute.cs
- xmlsaver.cs
- RuleAttributes.cs
- OdbcErrorCollection.cs
- ContentFileHelper.cs
- WorkflowRuntimeSection.cs
- VirtualPathUtility.cs
- FontConverter.cs
- WorkflowWebService.cs
- AuthenticationManager.cs
- NullReferenceException.cs
- UrlPath.cs
- IPEndPointCollection.cs
- WebDisplayNameAttribute.cs
- SessionState.cs
- GeneralTransform3DTo2DTo3D.cs
- OrthographicCamera.cs
- MsmqIntegrationMessagePool.cs
- CompatibleIComparer.cs
- Ref.cs
- ClientTargetCollection.cs
- Calendar.cs
- ObjectParameterCollection.cs
- MouseActionValueSerializer.cs
- ManipulationLogic.cs
- GraphicsState.cs
- SamlAuthorizationDecisionClaimResource.cs
- HtmlToClrEventProxy.cs
- ImageIndexConverter.cs
- PointLightBase.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ApplicationServiceHelper.cs
- FolderBrowserDialogDesigner.cs
- URLBuilder.cs
- SignatureGenerator.cs
- SupportsEventValidationAttribute.cs
- CompilationUtil.cs
- ByteStream.cs
- TextEditorCharacters.cs
- CodeMemberProperty.cs
- CustomErrorsSection.cs
- Pen.cs
- StringSorter.cs
- IInstanceContextProvider.cs
- PickBranchDesigner.xaml.cs
- GridViewEditEventArgs.cs
- DateTimeFormat.cs
- MatrixConverter.cs
- Vector3DCollectionConverter.cs
- TextAnchor.cs
- RequestResizeEvent.cs
- GenericTypeParameterBuilder.cs
- MenuItemCollection.cs
- MessageEncodingBindingElementImporter.cs
- RegexCompiler.cs
- StateItem.cs
- RotationValidation.cs
- CodeCompiler.cs
- XmlCharType.cs
- StrongTypingException.cs
- AsyncResult.cs
- CommonObjectSecurity.cs
- UnitySerializationHolder.cs
- ObjectDataSourceDisposingEventArgs.cs
- XmlFormatExtensionAttribute.cs
- WebPartPersonalization.cs
- ProviderException.cs
- LoginView.cs
- DodSequenceMerge.cs
- Inflater.cs
- MimeTypeMapper.cs
- DrawingContextDrawingContextWalker.cs
- GeneralTransformGroup.cs
- __ComObject.cs
- DocumentViewerAutomationPeer.cs
- InfiniteIntConverter.cs
- SecurityElement.cs
- MarshalByValueComponent.cs
- XmlName.cs
- StylusPointProperty.cs
- externdll.cs
- Config.cs
- PriorityQueue.cs
- CodePageUtils.cs
- TypeUsage.cs