SafeArrayTypeMismatchException Klass

Definition

Undantaget utlöses när typen av inkommande SAFEARRAY inte matchar den typ som anges i den hanterade signaturen.

public ref class SafeArrayTypeMismatchException : Exception
public ref class SafeArrayTypeMismatchException : SystemException
public class SafeArrayTypeMismatchException : Exception
[System.Serializable]
public class SafeArrayTypeMismatchException : SystemException
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class SafeArrayTypeMismatchException : SystemException
public class SafeArrayTypeMismatchException : SystemException
type SafeArrayTypeMismatchException = class
    inherit Exception
[<System.Serializable>]
type SafeArrayTypeMismatchException = class
    inherit SystemException
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SafeArrayTypeMismatchException = class
    inherit SystemException
type SafeArrayTypeMismatchException = class
    inherit SystemException
Public Class SafeArrayTypeMismatchException
Inherits Exception
Public Class SafeArrayTypeMismatchException
Inherits SystemException
Arv
SafeArrayTypeMismatchException
Arv
SafeArrayTypeMismatchException
Attribut

Kommentarer

SafeArrayTypeMismatchException använder HRESULT-COR_E_SAFEARRAYTYPEMISMATCH, som har värdet 0x80131533.

Konstruktorer

Name Description
SafeArrayTypeMismatchException()

Initierar en ny instans av SafeArrayTypeMismatchException klassen med standardvärden.

SafeArrayTypeMismatchException(SerializationInfo, StreamingContext)

Initierar en ny instans av SafeArrayTypeMismatchException klassen från serialiseringsdata.

SafeArrayTypeMismatchException(String, Exception)

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

SafeArrayTypeMismatchException(String)

Initierar en ny instans av SafeArrayTypeMismatchException klassen med det angivna meddelandet.

Egenskaper

Name Description
Data

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

(Ärvd från Exception)
HelpLink

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

(Ärvd från Exception)
HResult

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

(Ärvd från Exception)
InnerException

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

(Ärvd från Exception)
Message

Hämtar ett meddelande som beskriver det aktuella undantaget.

(Ärvd från Exception)
Source

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

(Ärvd från Exception)
StackTrace

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

(Ärvd från Exception)
TargetSite

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

(Ärvd från Exception)

Metoder

Name Description
Equals(Object)

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

(Ärvd från Object)
GetBaseException()

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()

Fungerar som standard-hash-funktion.

(Ärvd från Object)
GetObjectData(SerializationInfo, StreamingContext)

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

(Ärvd från Exception)
GetType()

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

(Ärvd från Exception)
MemberwiseClone()

Skapar en ytlig kopia av den aktuella Object.

(Ärvd från Object)
ToString()

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

(Ärvd från Exception)

Händelser

Name Description
SerializeObjectState

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