ContextMarshalException Klass

Definition

Varning

ContextMarshalException is obsolete.

Undantaget som utlöses när ett försök att konvertera ett objekt över en kontextgräns misslyckas.

public ref class ContextMarshalException : SystemException
public class ContextMarshalException : SystemException
[System.Serializable]
public class ContextMarshalException : SystemException
[System.Serializable]
[System.Obsolete("ContextMarshalException is obsolete.")]
[System.Runtime.InteropServices.ComVisible(true)]
public class ContextMarshalException : SystemException
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class ContextMarshalException : SystemException
type ContextMarshalException = class
    inherit SystemException
[<System.Serializable>]
type ContextMarshalException = class
    inherit SystemException
[<System.Serializable>]
[<System.Obsolete("ContextMarshalException is obsolete.")>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type ContextMarshalException = class
    inherit SystemException
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type ContextMarshalException = class
    inherit SystemException
Public Class ContextMarshalException
Inherits SystemException
Arv
ContextMarshalException
Attribut

Kommentarer

Objekt kan konverteras efter värde eller referens. Alla försök att skicka en typ som inte kan konverteras via en kontextgräns resulterar i en ContextMarshalException.

ContextMarshalException använder HRESULT-COR_E_CONTEXTMARSHAL, som har värdet 0x80131504L.

ContextMarshalException använder standardimplementeringen Equals, som stöder referensjämlikhet.

För en lista över inledande egenskapsvärden för en instans av ContextMarshalException, se i ContextMarshalException-konstruktorn.

Konstruktorer

Name Description
ContextMarshalException()
Föråldrad.

Initierar en ny instans av ContextMarshalException klassen med standardegenskaper.

ContextMarshalException(SerializationInfo, StreamingContext)
Föråldrad.

Initierar en ny instans av ContextMarshalException klassen med serialiserade data.

ContextMarshalException(String, Exception)
Föråldrad.

Initierar en ny instans av ContextMarshalException klassen med ett angivet felmeddelande och en referens till det inre undantaget som är orsaken till det här undantaget.

ContextMarshalException(String)
Föråldrad.

Initierar en ny instans av ContextMarshalException klassen med ett angivet felmeddelande.

Egenskaper

Name Description
Data
Föråldrad.

Hämtar en samling nyckel/värde-par som ger ytterligare användardefinierad information om undantaget.

(Ärvd från Exception)
HelpLink
Föråldrad.

Hämtar eller anger en länk till hjälpfilen som är associerad med det här undantaget.

(Ärvd från Exception)
HResult
Föråldrad.

Hämtar eller anger HRESULT, ett kodat numeriskt värde som har tilldelats ett specifikt undantag.

(Ärvd från Exception)
InnerException
Föråldrad.

Hämtar den Exception instans som orsakade det aktuella undantaget.

(Ärvd från Exception)
Message
Föråldrad.

Hämtar ett meddelande som beskriver det aktuella undantaget.

(Ärvd från Exception)
Source
Föråldrad.

Hämtar eller anger namnet på programmet eller objektet som orsakar felet.

(Ärvd från Exception)
StackTrace
Föråldrad.

Hämtar en strängrepresentation av de omedelbara ramarna i anropsstacken.

(Ärvd från Exception)
TargetSite
Föråldrad.

Hämtar den metod som utlöser det aktuella undantaget.

(Ärvd från Exception)

Metoder

Name Description
Equals(Object)
Föråldrad.

Avgör om det angivna objektet är lika med det aktuella objektet.

(Ärvd från Object)
GetBaseException()
Föråldrad.

När den åsidosätts i en härledd klass returnerar den Exception som är rotorsaken till ett eller flera efterföljande undantag.

(Ärvd från Exception)
GetHashCode()
Föråldrad.

Fungerar som standard-hash-funktion.

(Ärvd från Object)
GetObjectData(SerializationInfo, StreamingContext)
Föråldrad.

När åsidosättas i en härledd klass anger du SerializationInfo med information om undantaget.

(Ärvd från Exception)
GetType()
Föråldrad.

Hämtar körningstypen för den aktuella instansen.

(Ärvd från Exception)
MemberwiseClone()
Föråldrad.

Skapar en ytlig kopia av den aktuella Object.

(Ärvd från Object)
ToString()
Föråldrad.

Skapar och returnerar en strängrepresentation av det aktuella undantaget.

(Ärvd från Exception)

Händelser

Name Description
SerializeObjectState
Föråldrad.

Inträffar när ett undantag serialiseras för att skapa ett undantagstillståndsobjekt som innehåller serialiserade data om undantaget.

(Ärvd från Exception)

Gäller för

Se även