Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / ContextMarshalException.cs / 1305376 / 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 or cannot be marshaled. ** ** This is thrown by the VM when attempts to marshal the exception ** object at the AppDomain transition boundary fails. =============================================================================*/ namespace System { using System.Runtime.InteropServices; using System.Runtime.Remoting; using System; using System.Runtime.Serialization; [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); } [System.Security.SecuritySafeCritical] // auto-generated 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 or cannot be marshaled. ** ** This is thrown by the VM when attempts to marshal the exception ** object at the AppDomain transition boundary fails. =============================================================================*/ namespace System { using System.Runtime.InteropServices; using System.Runtime.Remoting; using System; using System.Runtime.Serialization; [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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- DataGridViewButtonColumn.cs
- typedescriptorpermissionattribute.cs
- ScrollProviderWrapper.cs
- SingleObjectCollection.cs
- _NativeSSPI.cs
- DataGridViewCheckBoxCell.cs
- InkCanvasFeedbackAdorner.cs
- CryptoKeySecurity.cs
- RuntimeConfigurationRecord.cs
- ProfileParameter.cs
- ScriptResourceAttribute.cs
- Zone.cs
- RectValueSerializer.cs
- TraceUtils.cs
- SafeProcessHandle.cs
- XmlAttributeProperties.cs
- RichTextBox.cs
- MergePropertyDescriptor.cs
- RtfNavigator.cs
- PresentationAppDomainManager.cs
- DataViewListener.cs
- CategoryNameCollection.cs
- CookielessData.cs
- PostBackTrigger.cs
- BindableAttribute.cs
- UserNameServiceElement.cs
- DynamicMethod.cs
- SetState.cs
- SecondaryViewProvider.cs
- DependentList.cs
- XmlSchemaImporter.cs
- _HTTPDateParse.cs
- DecodeHelper.cs
- CodeLabeledStatement.cs
- Color.cs
- TakeOrSkipQueryOperator.cs
- ObjectToModelValueConverter.cs
- DataServiceHostFactory.cs
- XslException.cs
- VariableAction.cs
- MouseButtonEventArgs.cs
- RequestCachingSection.cs
- ResourceManager.cs
- MemberAccessException.cs
- BaseDataListDesigner.cs
- SQLInt32.cs
- SetterBaseCollection.cs
- QilLoop.cs
- MessageSecurityOverMsmqElement.cs
- StringResourceManager.cs
- PerfService.cs
- ModuleConfigurationInfo.cs
- SafeHGlobalHandleCritical.cs
- DateTimeConstantAttribute.cs
- ActivationWorker.cs
- OperationFormatter.cs
- GatewayDefinition.cs
- PropertyPath.cs
- DataControlCommands.cs
- SoapObjectReader.cs
- Point4DConverter.cs
- PrintPreviewDialog.cs
- ServiceParser.cs
- HttpFormatExtensions.cs
- WindowsClientCredential.cs
- PixelFormatConverter.cs
- TreeNodeMouseHoverEvent.cs
- DbModificationClause.cs
- AccessedThroughPropertyAttribute.cs
- XmlQueryContext.cs
- ScriptReferenceBase.cs
- PathGeometry.cs
- ZoneLinkButton.cs
- DateRangeEvent.cs
- _Events.cs
- SqlDataSourceCache.cs
- MembershipSection.cs
- ItemChangedEventArgs.cs
- XmlQueryOutput.cs
- TCPListener.cs
- SqlIdentifier.cs
- ScriptResourceInfo.cs
- ServiceModelDictionary.cs
- webeventbuffer.cs
- PathFigure.cs
- infer.cs
- ItemsPresenter.cs
- MetadataArtifactLoaderCompositeResource.cs
- ListParaClient.cs
- HiddenFieldPageStatePersister.cs
- AsyncOperation.cs
- Int64AnimationBase.cs
- MetaColumn.cs
- QuaternionConverter.cs
- DebugView.cs
- TextProperties.cs
- ReflectPropertyDescriptor.cs
- ProxyHelper.cs
- BezierSegment.cs
- _Events.cs