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
- TemplateBamlTreeBuilder.cs
- ResourceReferenceExpressionConverter.cs
- TypeGeneratedEventArgs.cs
- MenuStrip.cs
- EntityDataSourceContextDisposingEventArgs.cs
- ResumeStoryboard.cs
- D3DImage.cs
- DataSetUtil.cs
- WebPartActionVerb.cs
- PageSettings.cs
- ToolboxItemLoader.cs
- InternalBufferOverflowException.cs
- TemplateControlBuildProvider.cs
- TagPrefixAttribute.cs
- MimeMultiPart.cs
- BaseParaClient.cs
- PermissionRequestEvidence.cs
- GeneralTransform3DGroup.cs
- LinkedResource.cs
- ListControl.cs
- FontInfo.cs
- CultureSpecificCharacterBufferRange.cs
- StylusShape.cs
- QueueProcessor.cs
- WebPartEventArgs.cs
- TreeNode.cs
- WebBrowserHelper.cs
- GPPOINT.cs
- RecognizerInfo.cs
- EdgeProfileValidation.cs
- EntityDataSourceContainerNameItem.cs
- MyContact.cs
- DataGridViewBand.cs
- TabPage.cs
- Compiler.cs
- DataQuery.cs
- AssemblyNameUtility.cs
- GetWinFXPath.cs
- FontSizeConverter.cs
- HyperLinkStyle.cs
- HtmlWindowCollection.cs
- WebPartMenuStyle.cs
- ColumnTypeConverter.cs
- InternalPolicyElement.cs
- DataViewSetting.cs
- Baml6Assembly.cs
- ToolBarButton.cs
- ControlBindingsCollection.cs
- UpdatePanel.cs
- TableStyle.cs
- AllMembershipCondition.cs
- safesecurityhelperavalon.cs
- CellParaClient.cs
- AutomationPropertyChangedEventArgs.cs
- PassportAuthentication.cs
- DocumentScope.cs
- ResourceType.cs
- TreeViewImageKeyConverter.cs
- WebPartZoneBaseDesigner.cs
- StringKeyFrameCollection.cs
- OleDbConnectionInternal.cs
- SqlMethodAttribute.cs
- XmlWriterTraceListener.cs
- CalendarDayButton.cs
- RegexCharClass.cs
- BaseComponentEditor.cs
- ObjectPersistData.cs
- IsolatedStorageFilePermission.cs
- EventProviderClassic.cs
- TemplateEditingService.cs
- Point3D.cs
- ConnectionStringEditor.cs
- ListManagerBindingsCollection.cs
- SetStoryboardSpeedRatio.cs
- UnknownMessageReceivedEventArgs.cs
- XmlQualifiedName.cs
- NavigationPropertyAccessor.cs
- UInt32.cs
- Int16.cs
- AssemblyCollection.cs
- HttpFileCollection.cs
- NativeMethods.cs
- LoginName.cs
- SplitterPanelDesigner.cs
- XPathSingletonIterator.cs
- VectorKeyFrameCollection.cs
- SimpleRecyclingCache.cs
- FlowPosition.cs
- BrowserTree.cs
- FrameworkElement.cs
- PictureBox.cs
- AdCreatedEventArgs.cs
- IdleTimeoutMonitor.cs
- OfTypeExpression.cs
- NegatedConstant.cs
- DataGridViewCellCancelEventArgs.cs
- PropertyInfoSet.cs
- WeakReferenceKey.cs
- RequestNavigateEventArgs.cs
- CriticalHandle.cs