NoNullAllowedException Konstruktor

Definisi

Menginisialisasi instans baru dari kelas NoNullAllowedException.

Overload

Nama Deskripsi
NoNullAllowedException()

Menginisialisasi instans baru dari kelas NoNullAllowedException.

NoNullAllowedException(String)

Menginisialisasi instans NoNullAllowedException baru kelas dengan string yang ditentukan.

NoNullAllowedException(SerializationInfo, StreamingContext)
Kedaluwarsa.

Menginisialisasi instans NoNullAllowedException baru kelas dengan informasi serialisasi.

NoNullAllowedException(String, Exception)

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

NoNullAllowedException()

Sumber:
DataException.cs
Sumber:
DataException.cs
Sumber:
DataException.cs
Sumber:
DataException.cs
Sumber:
DataException.cs

Menginisialisasi instans baru dari kelas NoNullAllowedException.

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

Berlaku untuk

NoNullAllowedException(String)

Sumber:
DataException.cs
Sumber:
DataException.cs
Sumber:
DataException.cs
Sumber:
DataException.cs
Sumber:
DataException.cs

Menginisialisasi instans NoNullAllowedException baru kelas dengan string yang ditentukan.

public:
 NoNullAllowedException(System::String ^ s);
public NoNullAllowedException(string? s);
public NoNullAllowedException(string s);
new System.Data.NoNullAllowedException : string -> System.Data.NoNullAllowedException
Public Sub New (s As String)

Parameter

s
String

String yang ditampilkan saat pengecualian dilemparkan.

Berlaku untuk

NoNullAllowedException(SerializationInfo, StreamingContext)

Sumber:
DataException.cs
Sumber:
DataException.cs
Sumber:
DataException.cs
Sumber:
DataException.cs
Sumber:
DataException.cs

Perhatian

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

Menginisialisasi instans NoNullAllowedException baru kelas dengan informasi serialisasi.

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

Parameter

info
SerializationInfo

Data yang diperlukan untuk menserialisasikan atau mendeserialisasi objek.

context
StreamingContext

Deskripsi sumber dan tujuan aliran berseri yang ditentukan.

Atribut

Lihat juga

Berlaku untuk

NoNullAllowedException(String, Exception)

Sumber:
DataException.cs
Sumber:
DataException.cs
Sumber:
DataException.cs
Sumber:
DataException.cs
Sumber:
DataException.cs

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

public:
 NoNullAllowedException(System::String ^ message, Exception ^ innerException);
public NoNullAllowedException(string? message, Exception? innerException);
public NoNullAllowedException(string message, Exception innerException);
new System.Data.NoNullAllowedException : string * Exception -> System.Data.NoNullAllowedException
Public Sub New (message As String, innerException As Exception)

Parameter

message
String

Pesan kesalahan yang menjelaskan alasan pengecualian.

innerException
Exception

Pengecualian yang merupakan penyebab pengecualian saat ini, atau referensi null (Nothing di Visual Basic) jika tidak ada pengecualian dalam yang ditentukan.

Berlaku untuk