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
- EdmSchemaError.cs
- SqlDependencyUtils.cs
- TextAdaptor.cs
- EmbeddedMailObject.cs
- CompiledELinqQueryState.cs
- Timer.cs
- DecoratedNameAttribute.cs
- StylusPoint.cs
- SmtpMail.cs
- TransactionBridge.cs
- AtlasWeb.Designer.cs
- EntityDataSourceState.cs
- XPathDocumentNavigator.cs
- PaginationProgressEventArgs.cs
- ContentPlaceHolderDesigner.cs
- HtmlImage.cs
- DashStyles.cs
- DocumentPropertiesDialog.cs
- ProfilePropertyNameValidator.cs
- WebPartDisplayModeCancelEventArgs.cs
- ExceptionUtil.cs
- TextFindEngine.cs
- Deflater.cs
- ProtectedProviderSettings.cs
- HtmlInputText.cs
- LocatorManager.cs
- AsynchronousChannelMergeEnumerator.cs
- PageVisual.cs
- PassportAuthentication.cs
- ZipIOBlockManager.cs
- MessageVersionConverter.cs
- WFItemsToSpacerVisibility.cs
- SamlAction.cs
- SrgsGrammar.cs
- MethodBody.cs
- GridViewDesigner.cs
- TextSchema.cs
- SafeHandles.cs
- WinInetCache.cs
- panel.cs
- ExtenderControl.cs
- ViewBox.cs
- HtmlTernaryTree.cs
- SerializationTrace.cs
- Wizard.cs
- DataGridViewCellValueEventArgs.cs
- SpoolingTaskBase.cs
- BitmapEffectvisualstate.cs
- DataGridCheckBoxColumn.cs
- XsltFunctions.cs
- _TransmitFileOverlappedAsyncResult.cs
- RequestCacheValidator.cs
- DataControlField.cs
- TextRange.cs
- AbstractExpressions.cs
- DbConnectionPoolIdentity.cs
- XmlDataLoader.cs
- WebPartVerbsEventArgs.cs
- DBDataPermissionAttribute.cs
- COM2ExtendedUITypeEditor.cs
- XPathNodeIterator.cs
- DbException.cs
- DrawingAttributesDefaultValueFactory.cs
- StaticFileHandler.cs
- PnrpPeerResolverBindingElement.cs
- FilteredXmlReader.cs
- SmtpLoginAuthenticationModule.cs
- MachineSettingsSection.cs
- TextControl.cs
- Propagator.ExtentPlaceholderCreator.cs
- TreeViewItemAutomationPeer.cs
- EntitySqlQueryState.cs
- FlowPanelDesigner.cs
- DbConnectionInternal.cs
- behaviorssection.cs
- SourceSwitch.cs
- CodeSnippetTypeMember.cs
- ExceptionUtil.cs
- TextRenderer.cs
- WindowsAuthenticationEventArgs.cs
- TemplatedMailWebEventProvider.cs
- DataSourceConverter.cs
- Base64Encoder.cs
- MeasureItemEvent.cs
- BaseAsyncResult.cs
- EventHandlingScope.cs
- DeriveBytes.cs
- SecuritySessionServerSettings.cs
- ParseElementCollection.cs
- KnownBoxes.cs
- FixedTextPointer.cs
- EnumValidator.cs
- RadioButton.cs
- AuthenticateEventArgs.cs
- BadImageFormatException.cs
- DocumentViewerBaseAutomationPeer.cs
- AssertSection.cs
- ApplicationGesture.cs
- ExtendLockCommand.cs
- StylusPointPropertyInfo.cs