SafeArrayTypeMismatchException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy SafeArrayTypeMismatchException.

Przeciążenia

SafeArrayTypeMismatchException()

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

SafeArrayTypeMismatchException(String)

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

SafeArrayTypeMismatchException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje SafeArrayTypeMismatchException nowe wystąpienie klasy z danych serializacji.

SafeArrayTypeMismatchException(String, Exception)

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

SafeArrayTypeMismatchException()

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

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

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

Uwagi

SafeArrayTypeMismatchException 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

SafeArrayTypeMismatchException(String)

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

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

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

Parametry

message
String

Komunikat wskazujący przyczynę wyjątku.

Uwagi

SafeArrayTypeMismatchException 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

SafeArrayTypeMismatchException(SerializationInfo, StreamingContext)

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

Przestroga

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

Inicjuje SafeArrayTypeMismatchException nowe wystąpienie klasy z danych serializacji.

protected:
 SafeArrayTypeMismatchException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SafeArrayTypeMismatchException (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 SafeArrayTypeMismatchException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Runtime.InteropServices.SafeArrayTypeMismatchException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Runtime.InteropServices.SafeArrayTypeMismatchException
[<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.SafeArrayTypeMismatchException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Runtime.InteropServices.SafeArrayTypeMismatchException
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.

SafeArrayTypeMismatchException dziedziczy z SystemExceptionelementu .

Dotyczy

SafeArrayTypeMismatchException(String, Exception)

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

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

public:
 SafeArrayTypeMismatchException(System::String ^ message, Exception ^ inner);
public SafeArrayTypeMismatchException (string message, Exception inner);
public SafeArrayTypeMismatchException (string? message, Exception? inner);
new System.Runtime.InteropServices.SafeArrayTypeMismatchException : string * Exception -> System.Runtime.InteropServices.SafeArrayTypeMismatchException
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 SafeArrayTypeMismatchException.

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

Zobacz też

Dotyczy