PlatformNotSupportedException Oluşturucular

Tanım

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

Aşırı Yüklemeler

PlatformNotSupportedException()

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

PlatformNotSupportedException(String)

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

PlatformNotSupportedException(SerializationInfo, StreamingContext)
Geçersiz.

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

PlatformNotSupportedException(String, Exception)

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

PlatformNotSupportedException()

Source:
PlatformNotSupportedException.cs
Source:
PlatformNotSupportedException.cs
Source:
PlatformNotSupportedException.cs

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

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

Açıklamalar

Sınıfın PlatformNotSupportedException bir örneği bu oluşturucuya yapılan bir çağrı tarafından oluşturulduğunda, aşağıdaki özellikler belirtilen değerlere başlatılır:

Özellik Değer
InnerException null.
Message Boş dize.

Şunlara uygulanır

PlatformNotSupportedException(String)

Source:
PlatformNotSupportedException.cs
Source:
PlatformNotSupportedException.cs
Source:
PlatformNotSupportedException.cs

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

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

Parametreler

message
String

Özel durumun nedenini açıklayan metin iletisi.

Açıklamalar

Sınıfın PlatformNotSupportedException bir örneği bu oluşturucuya yapılan bir çağrı tarafından oluşturulduğunda, aşağıdaki özellikler belirtilen değerlere başlatılır:

Özellik Değer
InnerException null.
Message Hata iletisi dizesi.

Şunlara uygulanır

PlatformNotSupportedException(SerializationInfo, StreamingContext)

Source:
PlatformNotSupportedException.cs
Source:
PlatformNotSupportedException.cs
Source:
PlatformNotSupportedException.cs

Dikkat

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

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

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

Parametreler

info
SerializationInfo

Oluşturulan özel durumla ilgili serileştirilmiş nesne verilerini içeren SerializationInfo.

context
StreamingContext

Kaynak veya hedefle ilgili bağlamsal bilgileri içeren StreamingContext.

Öznitelikler

Şunlara uygulanır

PlatformNotSupportedException(String, Exception)

Source:
PlatformNotSupportedException.cs
Source:
PlatformNotSupportedException.cs
Source:
PlatformNotSupportedException.cs

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

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

Şunlara uygulanır