MarshalDirectiveException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy MarshalDirectiveException.

Przeciążenia

Nazwa Opis
MarshalDirectiveException()

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

MarshalDirectiveException(String)

Inicjuje nowe wystąpienie klasy MarshalDirectiveException 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
Źródło:
MarshalDirectiveException.cs
Źródło:
MarshalDirectiveException.cs

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

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

Uwagi

W poniższej tabeli przedstawiono początkowe wartości właściwości dla wystąpienia MarshalDirectiveException.

Majątek 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
Źródło:
MarshalDirectiveException.cs
Źródło:
MarshalDirectiveException.cs

Inicjuje nowe wystąpienie klasy MarshalDirectiveException 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

W poniższej tabeli przedstawiono początkowe wartości właściwości dla wystąpienia MarshalDirectiveException.

Majątek Wartość
InnerException null.
Message message

Dotyczy

MarshalDirectiveException(SerializationInfo, StreamingContext)

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

Uwaga

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);
[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);
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}")>]
new System.Runtime.InteropServices.MarshalDirectiveException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Runtime.InteropServices.MarshalDirectiveException
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, który przechowuje serializowane dane obiektu.

context
StreamingContext

Kontekstowe informacje o źródle lub miejscu docelowym.

Atrybuty

Wyjątki

Parametr info ma wartość null.

Uwagi

Ten konstruktor jest wywoływany podczas deserializacji w celu ponownego utworzenia obiektu wyjątku przesyłanego przez strumień. Aby uzyskać więcej informacji, zobacz XML i SOAP Serialization.

Dotyczy

MarshalDirectiveException(String, Exception)

Źródło:
MarshalDirectiveException.cs
Źródło:
MarshalDirectiveException.cs
Ź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, który jest przyczyną bieżącego wyjątku. Jeśli parametr inner nie jest null, bieżący wyjątek jest zgłaszany w bloku catch, 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 jest przekazywana do konstruktora, lub null, jeśli właściwość InnerException nie dostarcza wartości wyjątku wewnętrznego do konstruktora.

W poniższej tabeli przedstawiono początkowe wartości właściwości dla wystąpienia MarshalDirectiveException.

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

Zobacz też

Dotyczy