InvalidOleVariantTypeException Konstruktoren

Definition

Initialisiert eine neue Instanz der InvalidOleVariantTypeException-Klasse.

Überlädt

InvalidOleVariantTypeException()

Initialisiert eine neue Instanz der InvalidOleVariantTypeException-Klasse mit Standardwerten.

InvalidOleVariantTypeException(String)

Initialisiert eine neue Instanz der InvalidOleVariantTypeException-Klasse mit einer angegebenen Meldung.

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 diese Ausnahme ausgelöst hat.

InvalidOleVariantTypeException()

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 gezeigt.

Eigenschaft Wert
InnerException null.
Message Eine lokalisierte Fehlermeldungszeichenfolge.

Gilt für:

InvalidOleVariantTypeException(String)

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

Initialisiert eine neue Instanz der InvalidOleVariantTypeException-Klasse mit einer angegebenen Meldung.

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, in der die Ursache für die Ausnahme angegeben wird.

Hinweise

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

Eigenschaft Wert
InnerException null.
Message message

Gilt für:

InvalidOleVariantTypeException(SerializationInfo, StreamingContext)

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);
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);
new System.Runtime.InteropServices.InvalidOleVariantTypeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Runtime.InteropServices.InvalidOleVariantTypeException
[<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
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameter

info
SerializationInfo

Das Objekt, das die Daten des serialisierten Objekts enthält.

context
StreamingContext

Die Kontextinformationen zur Quelle bzw. zum Ziel.

Attribute

Ausnahmen

info ist null

Hinweise

Dieser Konstruktor wird während der Deserialisierung aufgerufen, um das über einen Datenstrom übertragene Ausnahmeobjekt wieder zusammenzusetzen. 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

Initialisiert eine neue Instanz der InvalidOleVariantTypeException-Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die diese Ausnahme ausgelöst hat.

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, in der die Ursache der Ausnahme erklärt wird.

inner
Exception

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

Hinweise

Eine Ausnahme, die als direktes Ergebnis einer vorhergehenden Ausnahme ausgelöst wird, muss in der InnerException-Eigenschaft über einen Verweis auf die vorhergehende Ausnahme verfügen. Die InnerException-Eigenschaft gibt den gleichen Wert zurück, der an den Konstruktor übergeben wird, oder null, wenn die InnerException-Eigenschaft den Wert der inneren Ausnahme nicht an den Konstruktor übergibt.

In der folgenden Tabelle werden die anfänglichen Eigenschaftenwerte für eine InvalidOleVariantTypeException-Instanz aufgeführt.

Eigenschaft Wert
InnerException Der Verweis auf die interne Ausnahme.
Message Die Zeichenfolge der Fehlermeldung.

Weitere Informationen

Gilt für: