ContextMarshalException Oluşturucular

Tanım

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

Aşırı Yüklemeler

Name Description
ContextMarshalException()

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

ContextMarshalException(String)

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

ContextMarshalException(SerializationInfo, StreamingContext)
Geçersiz.

Serileştirilmiş verilerle ContextMarshalException sınıfının yeni bir örneğini başlatır.

ContextMarshalException(String, Exception)

Belirtilen bir hata iletisi ve bu özel durumun nedeni olan iç özel duruma başvuru ile ContextMarshalException sınıfının yeni bir örneğini başlatır.

ContextMarshalException()

Kaynak:
Context.cs
Kaynak:
Context.cs
Kaynak:
Context.cs
Kaynak:
Context.cs
Kaynak:
Context.cs

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

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

Açıklamalar

Aşağıdaki tabloda, ContextMarshalExceptionörneğinin ilk özellik değerleri gösterilmektedir.

Mülkiyet Değer
InnerException null.
Message Boş dize ("").

Şunlara uygulanır

ContextMarshalException(String)

Kaynak:
Context.cs
Kaynak:
Context.cs
Kaynak:
Context.cs
Kaynak:
Context.cs
Kaynak:
Context.cs

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

public:
 ContextMarshalException(System::String ^ message);
public ContextMarshalException(string? message);
public ContextMarshalException(string message);
new ContextMarshalException : string -> ContextMarshalException
Public Sub New (message As String)

Parametreler

message
String

Özel durumun nedenini açıklayan hata iletisi.

Açıklamalar

Aşağıdaki tabloda, ContextMarshalExceptionörneğinin ilk özellik değerleri gösterilmektedir.

Mülkiyet Değer
InnerException null.
Message Hata iletisi dizesi.

Şunlara uygulanır

ContextMarshalException(SerializationInfo, StreamingContext)

Kaynak:
Context.cs
Kaynak:
Context.cs
Kaynak:
Context.cs
Kaynak:
Context.cs
Kaynak:
Context.cs

Dikkat

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

Serileştirilmiş verilerle ContextMarshalException sınıfının yeni bir örneğini başlatır.

protected:
 ContextMarshalException(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 ContextMarshalException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected ContextMarshalException(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 ContextMarshalException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> ContextMarshalException
new ContextMarshalException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> ContextMarshalException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parametreler

info
SerializationInfo

Oluşan SerializationInfo özel durumla ilgili serileştirilmiş nesne verilerini tutan.

context
StreamingContext

StreamingContext Kaynak veya hedef hakkında bağlamsal bilgileri içeren.

Öznitelikler

Şunlara uygulanır

ContextMarshalException(String, Exception)

Kaynak:
Context.cs
Kaynak:
Context.cs
Kaynak:
Context.cs
Kaynak:
Context.cs
Kaynak:
Context.cs

Belirtilen bir hata iletisi ve bu özel durumun nedeni olan iç özel duruma başvuru ile ContextMarshalException sınıfının yeni bir örneğini başlatır.

public:
 ContextMarshalException(System::String ^ message, Exception ^ inner);
public ContextMarshalException(string? message, Exception? inner);
public ContextMarshalException(string message, Exception inner);
new ContextMarshalException : string * Exception -> ContextMarshalException
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 nulldeğilse, geçerli özel durum, iç özel durumu işleyen bir catch bloğunda oluşturulur.

Açıklamalar

Önceki bir özel durumun doğrudan sonucu olarak oluşan özel durum, InnerException özelliğindeki önceki özel duruma başvuru içermelidir. InnerException özelliği oluşturucuya geçirilen değeri döndürür veya null özelliği oluşturucuya iç özel durum değeri sağlamazsa InnerException.

Aşağıdaki tabloda, ContextMarshalExceptionörneğinin ilk özellik değerleri gösterilmektedir.

Mülkiyet Değer
InnerException İç özel durum başvurusu.
Message Hata iletisi dizesi.

Şunlara uygulanır