Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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) { } } } // 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. ** ** =============================================================================*/ 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) { } } } // 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
- SamlAudienceRestrictionCondition.cs
- ConfigurationFileMap.cs
- DataPagerCommandEventArgs.cs
- CultureTable.cs
- DoubleConverter.cs
- GcSettings.cs
- IResourceProvider.cs
- SelectionItemProviderWrapper.cs
- SoundPlayer.cs
- Predicate.cs
- ValidatorUtils.cs
- COM2ICategorizePropertiesHandler.cs
- SingleQueryOperator.cs
- ContractHandle.cs
- TypeUsageBuilder.cs
- PublishLicense.cs
- Conditional.cs
- FixedDocumentSequencePaginator.cs
- HttpCacheVaryByContentEncodings.cs
- OleDbConnectionFactory.cs
- ThrowOnMultipleAssignment.cs
- DataSourceListEditor.cs
- WebConfigurationManager.cs
- ContextProperty.cs
- ExpressionNormalizer.cs
- NavigationEventArgs.cs
- MetaModel.cs
- ExtentJoinTreeNode.cs
- XmlAttributeProperties.cs
- StylusPointPropertyUnit.cs
- HtmlUtf8RawTextWriter.cs
- DataBoundLiteralControl.cs
- PassportAuthenticationEventArgs.cs
- ComplexPropertyEntry.cs
- HashAlgorithm.cs
- CompiledIdentityConstraint.cs
- CustomSignedXml.cs
- EventWaitHandle.cs
- AutomationPatternInfo.cs
- PropertyValueChangedEvent.cs
- StatusBarPanelClickEvent.cs
- DockProviderWrapper.cs
- StorageComplexTypeMapping.cs
- printdlgexmarshaler.cs
- ServerType.cs
- XsdCachingReader.cs
- FontNameEditor.cs
- ColorTranslator.cs
- SortQuery.cs
- ColorMatrix.cs
- Point3DIndependentAnimationStorage.cs
- Pair.cs
- EntityModelSchemaGenerator.cs
- MessageQueuePermissionEntryCollection.cs
- FlowNode.cs
- CodeDomConfigurationHandler.cs
- LiteralText.cs
- ByteStack.cs
- DisposableCollectionWrapper.cs
- HttpCookieCollection.cs
- NameValuePair.cs
- SHA256Managed.cs
- AttachmentService.cs
- DesignerAttribute.cs
- Trigger.cs
- StackSpiller.cs
- LinkUtilities.cs
- DbParameterCollectionHelper.cs
- InvalidCardException.cs
- WebServiceMethodData.cs
- InternalBase.cs
- MatrixValueSerializer.cs
- CompositeClientFormatter.cs
- MultilineStringConverter.cs
- GridErrorDlg.cs
- TranslateTransform3D.cs
- DetailsViewDeleteEventArgs.cs
- AffineTransform3D.cs
- AuthenticationService.cs
- NewArrayExpression.cs
- DbDataAdapter.cs
- WeakKeyDictionary.cs
- FullTextState.cs
- MatcherBuilder.cs
- Odbc32.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- TextBounds.cs
- AttributeTableBuilder.cs
- DataGridCaption.cs
- SiteMapNodeCollection.cs
- IInstanceContextProvider.cs
- SqlBooleanMismatchVisitor.cs
- UserUseLicenseDictionaryLoader.cs
- followingquery.cs
- RectAnimation.cs
- EntityContainerEmitter.cs
- RouteItem.cs
- TableItemPattern.cs
- TraceHandlerErrorFormatter.cs
- ReversePositionQuery.cs