Freigeben über


InvalidOleVariantTypeException Konstruktoren

Definition

Initialisiert eine neue Instanz der InvalidOleVariantTypeException-Klasse.

Überlädt

Name Beschreibung
InvalidOleVariantTypeException()

Initialisiert eine neue Instanz der InvalidOleVariantTypeException Klasse mit Standardwerten.

InvalidOleVariantTypeException(String)

Initialisiert eine neue Instanz der InvalidOleVariantTypeException Klasse mit einer angegebenen Nachricht.

InvalidOleVariantTypeException(SerializationInfo, StreamingContext)
Veraltet.

Initialisiert eine neue Instanz der InvalidOleVariantTypeException Klasse aus Serialisierungsdaten.

InvalidOleVariantTypeException(String, Exception)

Initialisiert eine neue Instanz der InvalidOleVariantTypeException Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die die Ursache dieser Ausnahme ist.

InvalidOleVariantTypeException()

Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs

Initialisiert eine neue Instanz der InvalidOleVariantTypeException Klasse mit Standardwerten.

public:
 InvalidOleVariantTypeException();
public InvalidOleVariantTypeException();
Public Sub New ()

Hinweise

InvalidOleVariantTypeException erbt von SystemException. Dieser Konstruktor legt die Eigenschaften des Exception Objekts fest, wie in der folgenden Tabelle dargestellt.

Eigentum Wert
InnerException null.
Message Eine lokalisierte Fehlermeldungszeichenfolge.

Gilt für:

InvalidOleVariantTypeException(String)

Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs

Initialisiert eine neue Instanz der InvalidOleVariantTypeException Klasse mit einer angegebenen Nachricht.

public:
 InvalidOleVariantTypeException(System::String ^ message);
public InvalidOleVariantTypeException(string message);
public InvalidOleVariantTypeException(string? message);
new System.Runtime.InteropServices.InvalidOleVariantTypeException : string -> System.Runtime.InteropServices.InvalidOleVariantTypeException
Public Sub New (message As String)

Parameter

message
String

Die Meldung, die den Grund für die Ausnahme angibt.

Hinweise

InvalidOleVariantTypeException erbt von SystemException. Dieser Konstruktor legt die Eigenschaften des Exception Objekts fest, wie in der folgenden Tabelle dargestellt.

Eigentum Wert
InnerException null.
Message message

Gilt für:

InvalidOleVariantTypeException(SerializationInfo, StreamingContext)

Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs

Achtung

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Initialisiert eine neue Instanz der InvalidOleVariantTypeException Klasse aus Serialisierungsdaten.

protected:
 InvalidOleVariantTypeException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected InvalidOleVariantTypeException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected InvalidOleVariantTypeException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Runtime.InteropServices.InvalidOleVariantTypeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Runtime.InteropServices.InvalidOleVariantTypeException
new System.Runtime.InteropServices.InvalidOleVariantTypeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Runtime.InteropServices.InvalidOleVariantTypeException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameter

info
SerializationInfo

Das Objekt, das die serialisierten Objektdaten enthält.

context
StreamingContext

Die kontextbezogenen Informationen zur Quelle oder zum Ziel.

Attribute

Ausnahmen

info ist null.

Hinweise

Dieser Konstruktor wird während der Deserialisierung aufgerufen, um das über einen Datenstrom übertragene Ausnahmeobjekt zu rekonstituieren. Weitere Informationen finden Sie unter System.Runtime.Serialization.

InvalidOleVariantTypeException erbt von SystemException.

Gilt für:

InvalidOleVariantTypeException(String, Exception)

Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs
Quelle:
InvalidOleVariantTypeException.cs

Initialisiert eine neue Instanz der InvalidOleVariantTypeException Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die die Ursache dieser Ausnahme ist.

public:
 InvalidOleVariantTypeException(System::String ^ message, Exception ^ inner);
public InvalidOleVariantTypeException(string message, Exception inner);
public InvalidOleVariantTypeException(string? message, Exception? inner);
new System.Runtime.InteropServices.InvalidOleVariantTypeException : string * Exception -> System.Runtime.InteropServices.InvalidOleVariantTypeException
Public Sub New (message As String, inner As Exception)

Parameter

message
String

Die Fehlermeldung, die den Grund für die Ausnahme erklärt.

inner
Exception

Die Ausnahme, die die Ursache der aktuellen Ausnahme ist. Wenn der inner Parameter nicht nullangegeben ist, wird die aktuelle Ausnahme in einem catch Block ausgelöst, der die innere Ausnahme behandelt.

Hinweise

Eine Ausnahme, die als direktes Ergebnis einer vorherigen Ausnahme ausgelöst wird, sollte einen Verweis auf die vorherige Ausnahme in der InnerException Eigenschaft enthalten. Die InnerException Eigenschaft gibt denselben Wert zurück, der an den Konstruktor übergeben wird, oder null wenn die InnerException Eigenschaft den inneren Ausnahmewert nicht für den Konstruktor angibt.

In der folgenden Tabelle sind die anfänglichen Eigenschaftswerte für eine Instanz von InvalidOleVariantTypeException.

Eigentum Wert
InnerException Der interne Ausnahmeverweis.
Message Die Fehlermeldungszeichenfolge.

Weitere Informationen

Gilt für: