Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConfigXmlComment.cs
- XmlNamespaceMapping.cs
- GotoExpression.cs
- DeferredElementTreeState.cs
- SystemWebSectionGroup.cs
- TemplateContentLoader.cs
- ListItemsPage.cs
- PolyQuadraticBezierSegment.cs
- ProfileSettings.cs
- IndexedGlyphRun.cs
- NameValueSectionHandler.cs
- DataTableReader.cs
- FrameworkElement.cs
- CurrentChangedEventManager.cs
- GeneralTransform.cs
- GeneralTransformGroup.cs
- XmlSchemaDocumentation.cs
- SafeRightsManagementQueryHandle.cs
- HttpApplication.cs
- ActiveXSite.cs
- RootBrowserWindowProxy.cs
- RecognitionResult.cs
- AdornedElementPlaceholder.cs
- FieldAccessException.cs
- IriParsingElement.cs
- SiteMapHierarchicalDataSourceView.cs
- DataGridColumnHeaderCollection.cs
- BulletChrome.cs
- Math.cs
- MissingMethodException.cs
- BitmapEffectRenderDataResource.cs
- FilePrompt.cs
- HttpDebugHandler.cs
- Processor.cs
- ProgressBar.cs
- FlowDocument.cs
- SoapHeaderAttribute.cs
- RegisteredArrayDeclaration.cs
- SqlProcedureAttribute.cs
- CurrentChangedEventManager.cs
- COM2Enum.cs
- FileDialog.cs
- TextElementEditingBehaviorAttribute.cs
- SqlCacheDependencySection.cs
- XmlCharType.cs
- InOutArgument.cs
- FilterElement.cs
- CollaborationHelperFunctions.cs
- Pkcs7Recipient.cs
- DocumentSchemaValidator.cs
- TreeViewImageKeyConverter.cs
- DataControlFieldCollection.cs
- HtmlTernaryTree.cs
- ServicePointManager.cs
- XAMLParseException.cs
- GetMemberBinder.cs
- AudienceUriMode.cs
- SafeBitVector32.cs
- XPathNodeIterator.cs
- MenuScrollingVisibilityConverter.cs
- HttpCookiesSection.cs
- UniqueEventHelper.cs
- Converter.cs
- SR.cs
- MetaDataInfo.cs
- CoTaskMemHandle.cs
- ConfigurationManagerHelper.cs
- BuiltInExpr.cs
- ToolStripButton.cs
- DataGridViewHitTestInfo.cs
- FormDocumentDesigner.cs
- RectAnimation.cs
- AspNetHostingPermission.cs
- SimpleRecyclingCache.cs
- Margins.cs
- DataServiceResponse.cs
- MenuStrip.cs
- WindowsSpinner.cs
- ConversionContext.cs
- ProjectedSlot.cs
- MouseGesture.cs
- ColorMatrix.cs
- FileChangesMonitor.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- XmlAttribute.cs
- Point3D.cs
- ComponentChangedEvent.cs
- PagesSection.cs
- GraphicsPath.cs
- Dictionary.cs
- ButtonBase.cs
- TargetPerspective.cs
- CookieProtection.cs
- HierarchicalDataSourceDesigner.cs
- HMACSHA512.cs
- MailDefinitionBodyFileNameEditor.cs
- EventProperty.cs
- DynamicQueryableWrapper.cs
- TemplateBaseAction.cs
- GcSettings.cs