ContextMarshalException-Klasse

HINWEIS: Diese Klasse ist mittlerweile veraltet.

Die Ausnahme, die bei einem fehlgeschlagenen Versuch ausgelöst wird, ein Objekt über eine Kontextgrenze hinweg zu marshallen.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

'Declaration
<SerializableAttribute> _
<ObsoleteAttribute("ContextMarshalException is obsolete.")> _
<ComVisibleAttribute(True)> _
Public Class ContextMarshalException
    Inherits SystemException
'Usage
Dim instance As ContextMarshalException
[SerializableAttribute] 
[ObsoleteAttribute("ContextMarshalException is obsolete.")] 
[ComVisibleAttribute(true)] 
public class ContextMarshalException : SystemException
[SerializableAttribute] 
[ObsoleteAttribute(L"ContextMarshalException is obsolete.")] 
[ComVisibleAttribute(true)] 
public ref class ContextMarshalException : public SystemException
/** @attribute SerializableAttribute() */ 
/** @attribute ObsoleteAttribute("ContextMarshalException is obsolete.") */ 
/** @attribute ComVisibleAttribute(true) */ 
public class ContextMarshalException extends SystemException
SerializableAttribute 
ObsoleteAttribute("ContextMarshalException is obsolete.") 
ComVisibleAttribute(true) 
public class ContextMarshalException extends SystemException

Hinweise

Objekte können als Wert oder als Verweis gemarshallt werden. Jeder Versuch, einen Typ zu übergeben, der nicht über eine Kontextgrenze hinweg gemarshallt werden kann, löst eine ContextMarshalException aus.

ContextMarshalException verwendet HRESULT COR_E_CONTEXTMARSHAL mit dem Wert 0x80131504L.

ContextMarshalException verwendet die Equals-Standardimplementierung, die Verweisgleichheit unterstützt.

Eine Liste der anfänglichen Eigenschaftenwerte für eine Instanz von ContextMarshalException finden Sie unter ContextMarshalException-Konstruktoren.

Vererbungshierarchie

System.Object
   System.Exception
     System.SystemException
      System.ContextMarshalException

Threadsicherheit

Alle öffentlichen statischen (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 1.0, 1.1
Veraltet (Compilerwarnung) in 2.0

Siehe auch

Referenz

ContextMarshalException-Member
System-Namespace
Exception

Weitere Ressourcen

Behandeln und Auslösen von Ausnahmen