Share via


MarshalDirectiveException Oluşturucular

Tanım

MarshalDirectiveException sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

MarshalDirectiveException()

Sınıfın MarshalDirectiveException yeni bir örneğini varsayılan özelliklerle başlatır.

MarshalDirectiveException(String)

Belirtilen hata iletisiyle sınıfının yeni bir örneğini MarshalDirectiveException başlatır.

MarshalDirectiveException(SerializationInfo, StreamingContext)
Geçersiz.

Serileştirme verilerinden sınıfının yeni bir örneğini MarshalDirectiveException başlatır.

MarshalDirectiveException(String, Exception)

Sınıfın MarshalDirectiveException yeni bir örneğini belirtilen bir hata iletisiyle ve bu özel durumun nedeni olan iç özel duruma başvuruyla başlatır.

MarshalDirectiveException()

Kaynak:
MarshalDirectiveException.cs
Kaynak:
MarshalDirectiveException.cs
Kaynak:
MarshalDirectiveException.cs

Sınıfın MarshalDirectiveException yeni bir örneğini varsayılan özelliklerle başlatır.

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

Açıklamalar

Aşağıdaki tablo, MarshalDirectiveException öğesinin bir örneği için başlangıç özellik değerlerini gösterir.

Özellik Değer
InnerException null.
Message Yerelleştirilmiş bir hata iletisi dizesi.

Şunlara uygulanır

MarshalDirectiveException(String)

Kaynak:
MarshalDirectiveException.cs
Kaynak:
MarshalDirectiveException.cs
Kaynak:
MarshalDirectiveException.cs

Belirtilen hata iletisiyle sınıfının yeni bir örneğini MarshalDirectiveException başlatır.

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)

Parametreler

message
String

Özel durumun nedenini belirten hata iletisi.

Açıklamalar

Aşağıdaki tablo, MarshalDirectiveException öğesinin bir örneği için başlangıç özellik değerlerini gösterir.

Özellik Değer
InnerException null.
Message message

Şunlara uygulanır

MarshalDirectiveException(SerializationInfo, StreamingContext)

Kaynak:
MarshalDirectiveException.cs
Kaynak:
MarshalDirectiveException.cs
Kaynak:
MarshalDirectiveException.cs

Dikkat

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

Serileştirme verilerinden sınıfının yeni bir örneğini MarshalDirectiveException başlatır.

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)

Parametreler

info
SerializationInfo

Serileştirilmiş nesne verilerini tutan nesne.

context
StreamingContext

Kaynak veya hedefle ilgili bağlamsal bilgi.

Öznitelikler

Özel durumlar

info, null değeridir.

Açıklamalar

Bu oluşturucu, bir akış üzerinden iletilen özel durum nesnesini yeniden oluşturmak için seri durumundan çıkarma sırasında çağrılır. Daha fazla bilgi için bkz. XML ve SOAP Serileştirme.

Şunlara uygulanır

MarshalDirectiveException(String, Exception)

Kaynak:
MarshalDirectiveException.cs
Kaynak:
MarshalDirectiveException.cs
Kaynak:
MarshalDirectiveException.cs

Sınıfın MarshalDirectiveException yeni bir örneğini belirtilen bir hata iletisiyle ve bu özel durumun nedeni olan iç özel duruma başvuruyla başlatır.

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)

Parametreler

message
String

Özel durumun nedenini açıklayan hata iletisi.

inner
Exception

Geçerli özel durumun nedeni olan özel durum. inner parametresi değilsenull, geçerli özel durum iç özel durumu işleyen bir catch blokta oluşturulur.

Açıklamalar

Bir önceki özel durumun doğrudan bir sonucu olarak oluşturulan bir özel durum, InnerException özelliğindeki önceki özel duruma başvuru içermelidir. InnerException özelliği, oluşturucuya iletilen aynı değeri ya da InnerException özelliği oluşturucuya iç özel durum değeri sağlamıyorsa null değerini döndürür.

Aşağıdaki tablo, MarshalDirectiveException öğesinin bir örneği için başlangıç özellik değerlerini gösterir.

Özellik Değer
InnerException İç özel duruma başvuru.
Message Hata iletisi dizesi.

Ayrıca bkz.

Şunlara uygulanır