NoNullAllowedException コンストラクター

定義

NoNullAllowedException クラスの新しいインスタンスを初期化します。

オーバーロード

NoNullAllowedException()

NoNullAllowedException クラスの新しいインスタンスを初期化します。

NoNullAllowedException(String)

文字列を指定して、NoNullAllowedException クラスの新しいインスタンスを初期化します。

NoNullAllowedException(SerializationInfo, StreamingContext)
古い.

シリアル化情報を指定して、NoNullAllowedException クラスの新しいインスタンスを初期化します。

NoNullAllowedException(String, Exception)

指定したエラー メッセージおよびこの例外の原因となった内部例外への参照を使用して、NoNullAllowedException クラスの新しいインスタンスを初期化します。

NoNullAllowedException()

ソース:
DataException.cs
ソース:
DataException.cs
ソース:
DataException.cs

NoNullAllowedException クラスの新しいインスタンスを初期化します。

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

適用対象

NoNullAllowedException(String)

ソース:
DataException.cs
ソース:
DataException.cs
ソース:
DataException.cs

文字列を指定して、NoNullAllowedException クラスの新しいインスタンスを初期化します。

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)

パラメーター

s
String

例外がスローされたときに表示する文字列。

適用対象

NoNullAllowedException(SerializationInfo, StreamingContext)

ソース:
DataException.cs
ソース:
DataException.cs
ソース:
DataException.cs

注意事項

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

シリアル化情報を指定して、NoNullAllowedException クラスの新しいインスタンスを初期化します。

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

パラメーター

info
SerializationInfo

オブジェクトのシリアル化または逆シリアル化に必要なデータ。

context
StreamingContext

指定したシリアル化ストリームの転送元と転送先の説明。

属性

こちらもご覧ください

適用対象

NoNullAllowedException(String, Exception)

ソース:
DataException.cs
ソース:
DataException.cs
ソース:
DataException.cs

指定したエラー メッセージおよびこの例外の原因となった内部例外への参照を使用して、NoNullAllowedException クラスの新しいインスタンスを初期化します。

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)

パラメーター

message
String

例外の原因を説明するエラー メッセージ。

innerException
Exception

現在の例外の原因である例外。内部例外が指定されていない場合は null 参照 (Visual Basic では、Nothing)。

適用対象