Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TabItemAutomationPeer.cs
- DBPropSet.cs
- RuntimeArgument.cs
- Vector3DCollectionValueSerializer.cs
- DefaultHttpHandler.cs
- MemoryRecordBuffer.cs
- XmlElementAttribute.cs
- WebPartDisplayMode.cs
- ControlBuilder.cs
- TablePattern.cs
- Triplet.cs
- CssTextWriter.cs
- ThaiBuddhistCalendar.cs
- ReadOnlyCollectionBase.cs
- XmlSchemaType.cs
- COM2Properties.cs
- EntitySetBase.cs
- SafeBuffer.cs
- EntityDataSourceEntitySetNameItem.cs
- DataSourceControl.cs
- RefType.cs
- NameSpaceExtractor.cs
- OracleDataReader.cs
- RealizationContext.cs
- COM2PropertyPageUITypeConverter.cs
- InternalBase.cs
- SerializationInfo.cs
- DBAsyncResult.cs
- FormClosedEvent.cs
- AudioException.cs
- UriSection.cs
- ParagraphResult.cs
- MD5CryptoServiceProvider.cs
- DocobjHost.cs
- EventLogPermissionEntryCollection.cs
- DeviceSpecificChoiceCollection.cs
- MimeMapping.cs
- ButtonDesigner.cs
- TypeUtil.cs
- DocumentGridPage.cs
- SignatureToken.cs
- PolyLineSegment.cs
- FixedSOMImage.cs
- TrustManager.cs
- RemotingServices.cs
- BitmapEffect.cs
- SQLInt32.cs
- Inflater.cs
- SqlDataSourceSummaryPanel.cs
- ToolStripItem.cs
- TileBrush.cs
- HttpDebugHandler.cs
- ArraySubsetEnumerator.cs
- EntityDesignPluralizationHandler.cs
- HttpFileCollection.cs
- COAUTHIDENTITY.cs
- TableStyle.cs
- ThumbAutomationPeer.cs
- UnionExpr.cs
- SynchronizationHandlesCodeDomSerializer.cs
- HttpApplicationStateBase.cs
- FaultHandlingFilter.cs
- FixUp.cs
- ConfigurationLockCollection.cs
- NumberSubstitution.cs
- SubMenuStyle.cs
- BCLDebug.cs
- GroupBox.cs
- XmlElementAttribute.cs
- JavaScriptSerializer.cs
- SoapTypeAttribute.cs
- TableLayout.cs
- base64Transforms.cs
- OrderedDictionary.cs
- WindowsUpDown.cs
- RemotingException.cs
- VerificationAttribute.cs
- mediaeventshelper.cs
- CacheDependency.cs
- ListViewSelectEventArgs.cs
- ItemAutomationPeer.cs
- EventLogger.cs
- IconHelper.cs
- CustomPopupPlacement.cs
- CodeTypeReference.cs
- TableColumn.cs
- TabControlToolboxItem.cs
- TypedDatasetGenerator.cs
- AssociationEndMember.cs
- BamlTreeMap.cs
- WriteStateInfoBase.cs
- QilValidationVisitor.cs
- BmpBitmapEncoder.cs
- GraphicsContainer.cs
- AutomationPropertyInfo.cs
- WebPageTraceListener.cs
- UnsafeNativeMethods.cs
- SqlCacheDependencySection.cs
- Screen.cs
- ClientSponsor.cs