MarshalDirectiveException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy MarshalDirectiveException.

Przeciążenia

MarshalDirectiveException()

Inicjuje MarshalDirectiveException nowe wystąpienie klasy z domyślnymi właściwościami.

MarshalDirectiveException(String)

Inicjuje MarshalDirectiveException nowe wystąpienie klasy z określonym komunikatem o błędzie.

MarshalDirectiveException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje MarshalDirectiveException nowe wystąpienie klasy z danych serializacji.

MarshalDirectiveException(String, Exception)

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

MarshalDirectiveException()

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

Inicjuje MarshalDirectiveException nowe wystąpienie klasy z domyślnymi właściwościami.

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

Uwagi

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

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

Dotyczy

MarshalDirectiveException(String)

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

Inicjuje MarshalDirectiveException nowe wystąpienie klasy z określonym komunikatem o błędzie.

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

Parametry

message
String

Komunikat o błędzie określający przyczynę wyjątku.

Uwagi

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

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

Dotyczy

MarshalDirectiveException(SerializationInfo, StreamingContext)

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

Przestroga

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

Inicjuje MarshalDirectiveException nowe wystąpienie klasy z danych serializacji.

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

Dotyczy

MarshalDirectiveException(String, Exception)

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

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

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

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

Zobacz też

Dotyczy