PlatformNotSupportedException Konstruktor

Definisi

Menginisialisasi instans baru kelas PlatformNotSupportedException.

Overload

PlatformNotSupportedException()

Menginisialisasi instans PlatformNotSupportedException baru kelas dengan properti default.

PlatformNotSupportedException(String)

Menginisialisasi instans PlatformNotSupportedException baru kelas dengan pesan kesalahan yang ditentukan.

PlatformNotSupportedException(SerializationInfo, StreamingContext)
Kedaluwarsa.

Menginisialisasi instans PlatformNotSupportedException baru kelas dengan data berseri.

PlatformNotSupportedException(String, Exception)

Menginisialisasi instans PlatformNotSupportedException baru kelas dengan pesan kesalahan yang ditentukan dan referensi ke pengecualian dalam yang merupakan penyebab pengecualian ini.

PlatformNotSupportedException()

Sumber:
PlatformNotSupportedException.cs
Sumber:
PlatformNotSupportedException.cs
Sumber:
PlatformNotSupportedException.cs

Menginisialisasi instans PlatformNotSupportedException baru kelas dengan properti default.

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

Keterangan

Saat instans PlatformNotSupportedException kelas dibuat oleh panggilan ke konstruktor ini, properti berikut diinisialisasi ke nilai yang ditentukan:

Properti Nilai
InnerException null.
Message String kosong.

Berlaku untuk

PlatformNotSupportedException(String)

Sumber:
PlatformNotSupportedException.cs
Sumber:
PlatformNotSupportedException.cs
Sumber:
PlatformNotSupportedException.cs

Menginisialisasi instans PlatformNotSupportedException baru kelas dengan pesan kesalahan yang ditentukan.

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

Parameter

message
String

Pesan teks yang menjelaskan alasan pengecualian.

Keterangan

Saat instans PlatformNotSupportedException kelas dibuat oleh panggilan ke konstruktor ini, properti berikut diinisialisasi ke nilai yang ditentukan:

Properti Nilai
InnerException null.
Message String pesan kesalahan.

Berlaku untuk

PlatformNotSupportedException(SerializationInfo, StreamingContext)

Sumber:
PlatformNotSupportedException.cs
Sumber:
PlatformNotSupportedException.cs
Sumber:
PlatformNotSupportedException.cs

Perhatian

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

Menginisialisasi instans PlatformNotSupportedException baru kelas dengan data berseri.

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)

Parameter

info
SerializationInfo

SerializationInfo yang menyimpan data objek berseri tentang pengecualian yang dilemparkan.

context
StreamingContext

StreamingContext yang berisi informasi kontekstual tentang sumber atau tujuan.

Atribut

Berlaku untuk

PlatformNotSupportedException(String, Exception)

Sumber:
PlatformNotSupportedException.cs
Sumber:
PlatformNotSupportedException.cs
Sumber:
PlatformNotSupportedException.cs

Menginisialisasi instans PlatformNotSupportedException baru kelas dengan pesan kesalahan yang ditentukan dan referensi ke pengecualian dalam yang merupakan penyebab pengecualian ini.

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)

Parameter

message
String

Pesan kesalahan yang menjelaskan alasan pengecualian.

inner
Exception

Pengecualian yang merupakan penyebab pengecualian saat ini. inner Jika parameter bukan null, pengecualian saat ini dimunculkan dalam catch blok yang menangani pengecualian dalam.

Keterangan

Pengecualian yang dilemparkan sebagai hasil langsung dari pengecualian sebelumnya harus menyertakan referensi ke pengecualian sebelumnya dalam InnerException properti . Properti InnerException mengembalikan nilai yang sama yang diteruskan ke konstruktor, atau null jika InnerException properti tidak menyediakan nilai pengecualian dalam ke konstruktor.

Tabel berikut ini memperlihatkan nilai properti awal untuk instans PlatformNotSupportedException.

Properti Nilai
InnerException Referensi pengecualian dalam.
Message String pesan kesalahan.

Berlaku untuk