Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ToolStripStatusLabel.cs
- TypeListConverter.cs
- HttpResponseInternalWrapper.cs
- SpellerError.cs
- Serializer.cs
- DragEventArgs.cs
- _AutoWebProxyScriptHelper.cs
- TransportReplyChannelAcceptor.cs
- TextTreePropertyUndoUnit.cs
- RIPEMD160.cs
- SqlServices.cs
- MatrixValueSerializer.cs
- Unit.cs
- SynchronizingStream.cs
- StateValidator.cs
- TextEndOfSegment.cs
- Certificate.cs
- PrintPreviewControl.cs
- BuildResult.cs
- DecoderFallbackWithFailureFlag.cs
- Compiler.cs
- FormViewPageEventArgs.cs
- ParseNumbers.cs
- QilPatternFactory.cs
- CurrencyWrapper.cs
- XmlSchemaAttribute.cs
- ObjectConverter.cs
- PropertyDescriptorGridEntry.cs
- ThaiBuddhistCalendar.cs
- TranslateTransform.cs
- FormViewRow.cs
- ObjectPersistData.cs
- SqlBulkCopyColumnMapping.cs
- ProfessionalColorTable.cs
- XmlSchemaSimpleTypeList.cs
- IdentityManager.cs
- TextCollapsingProperties.cs
- CompilerParameters.cs
- TextTreeDeleteContentUndoUnit.cs
- RowUpdatedEventArgs.cs
- ProxyWebPartConnectionCollection.cs
- TableAutomationPeer.cs
- RayHitTestParameters.cs
- ReferenceAssemblyAttribute.cs
- Literal.cs
- ServiceDescription.cs
- MenuItemCollectionEditorDialog.cs
- XamlGridLengthSerializer.cs
- SerializationSectionGroup.cs
- Exceptions.cs
- unsafenativemethodstextservices.cs
- RangeBase.cs
- SettingsPropertyValueCollection.cs
- SqlDependencyUtils.cs
- Pen.cs
- Helper.cs
- CaseInsensitiveOrdinalStringComparer.cs
- CompilationLock.cs
- HelpEvent.cs
- Transform.cs
- WebPartEditorOkVerb.cs
- ControlBuilder.cs
- CallSiteOps.cs
- WebPartRestoreVerb.cs
- TableRowCollection.cs
- ParameterSubsegment.cs
- HexParser.cs
- SerializationSectionGroup.cs
- VirtualizingStackPanel.cs
- InputLanguage.cs
- SqlBooleanMismatchVisitor.cs
- MappableObjectManager.cs
- WindowsFont.cs
- DrawingAttributesDefaultValueFactory.cs
- WebSysDisplayNameAttribute.cs
- LocalizedNameDescriptionPair.cs
- XmlArrayItemAttribute.cs
- ClientUrlResolverWrapper.cs
- IntegrationExceptionEventArgs.cs
- WindowsIdentity.cs
- AutoGeneratedField.cs
- shaperfactory.cs
- EditCommandColumn.cs
- EventPrivateKey.cs
- Overlapped.cs
- XmlSchemaAnnotation.cs
- JsonStringDataContract.cs
- ReflectionTypeLoadException.cs
- DbgCompiler.cs
- UInt16Converter.cs
- Schema.cs
- Send.cs
- FilteredDataSetHelper.cs
- SqlAggregateChecker.cs
- MemberRelationshipService.cs
- EventToken.cs
- DataSourceNameHandler.cs
- WebBrowsableAttribute.cs
- HtmlLink.cs
- FixedSOMTextRun.cs