InvalidOleVariantTypeException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy InvalidOleVariantTypeException.

Przeciążenia

InvalidOleVariantTypeException()

Inicjuje nowe wystąpienie klasy InvalidOleVariantTypeException z domyślnymi wartościami.

InvalidOleVariantTypeException(String)

Inicjuje InvalidOleVariantTypeException nowe wystąpienie klasy z określonym komunikatem.

InvalidOleVariantTypeException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje InvalidOleVariantTypeException nowe wystąpienie klasy z danych serializacji.

InvalidOleVariantTypeException(String, Exception)

Inicjuje nowe wystąpienie InvalidOleVariantTypeException klasy z określonym komunikatem o błędzie i odwołaniem do wewnętrznego wyjątku, który jest przyczyną tego wyjątku.

InvalidOleVariantTypeException()

Źródło:
InvalidOleVariantTypeException.cs
Źródło:
InvalidOleVariantTypeException.cs
Źródło:
InvalidOleVariantTypeException.cs

Inicjuje nowe wystąpienie klasy InvalidOleVariantTypeException z domyślnymi wartościami.

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

Uwagi

InvalidOleVariantTypeException dziedziczy z SystemExceptionelementu . Ten konstruktor ustawia właściwości Exception obiektu, jak pokazano w poniższej tabeli.

Właściwość Wartość
InnerException null.
Message Zlokalizowany ciąg komunikatu o błędzie.

Dotyczy

InvalidOleVariantTypeException(String)

Źródło:
InvalidOleVariantTypeException.cs
Źródło:
InvalidOleVariantTypeException.cs
Źródło:
InvalidOleVariantTypeException.cs

Inicjuje InvalidOleVariantTypeException nowe wystąpienie klasy z określonym komunikatem.

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)

Parametry

message
String

Komunikat wskazujący przyczynę wyjątku.

Uwagi

InvalidOleVariantTypeException dziedziczy z SystemExceptionelementu . Ten konstruktor ustawia właściwości Exception obiektu, jak pokazano w poniższej tabeli.

Właściwość Wartość
InnerException null.
Message message

Dotyczy

InvalidOleVariantTypeException(SerializationInfo, StreamingContext)

Źródło:
InvalidOleVariantTypeException.cs
Źródło:
InvalidOleVariantTypeException.cs
Źródło:
InvalidOleVariantTypeException.cs

Przestroga

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

Inicjuje InvalidOleVariantTypeException nowe wystąpienie klasy z danych serializacji.

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)

Parametry

info
SerializationInfo

Obiekt zawierający dane serializowanego obiektu.

context
StreamingContext

Informacje kontekstowe dotyczące źródła lub miejsca docelowego.

Atrybuty

Wyjątki

info to null.

Uwagi

Ten konstruktor jest wywoływana podczas deserializacji do odtworzenia obiektu wyjątku przesyłanego za pomocą strumienia. Aby uzyskać więcej informacji, zobacz System.Runtime.Serialization.

InvalidOleVariantTypeException dziedziczy z SystemExceptionelementu .

Dotyczy

InvalidOleVariantTypeException(String, Exception)

Źródło:
InvalidOleVariantTypeException.cs
Źródło:
InvalidOleVariantTypeException.cs
Źródło:
InvalidOleVariantTypeException.cs

Inicjuje nowe wystąpienie InvalidOleVariantTypeException klasy z określonym komunikatem o błędzie i odwołaniem do wewnętrznego wyjątku, który jest przyczyną tego wyjątku.

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)

Parametry

message
String

Komunikat o błędzie wyjaśniający przyczynę wyjątku.

inner
Exception

Wyjątek będący przyczyną bieżącego wyjątku. inner Jeśli parametr nie nulljest , bieżący wyjątek jest zgłaszany w catch bloku, który obsługuje wyjątek wewnętrzny.

Uwagi

Wyjątek zgłaszany bezpośrednio w wyniku poprzedniego wyjątku powinien zawierać odwołanie do poprzedniego wyjątku we właściwości InnerException. Właściwość InnerException zwraca tę samą wartość, która została przekazana do konstruktora, lub wartość null, jeśli właściwość InnerException nie przekazuje do konstruktora wartości wyjątku wewnętrznego.

Poniższa tabela prezentuje początkowe wartości właściwości dla wystąpienia klasy InvalidOleVariantTypeException.

Właściwość Wartość
InnerException Odwołanie do wewnętrznego wyjątku.
Message Ciąg komunikatu o błędzie.

Zobacz też

Dotyczy