InvalidEnumArgumentException コンストラクター

定義

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

オーバーロード

名前 説明
InvalidEnumArgumentException()

メッセージなしで、 InvalidEnumArgumentException クラスの新しいインスタンスを初期化します。

InvalidEnumArgumentException(String)

指定したメッセージを使用して、 InvalidEnumArgumentException クラスの新しいインスタンスを初期化します。

InvalidEnumArgumentException(SerializationInfo, StreamingContext)
古い.

指定したシリアル化データとコンテキストを使用して、 InvalidEnumArgumentException クラスの新しいインスタンスを初期化します。

InvalidEnumArgumentException(String, Exception)

指定した詳細な説明と指定した例外を使用して、 InvalidEnumArgumentException クラスの新しいインスタンスを初期化します。

InvalidEnumArgumentException(String, Int32, Type)

引数から生成されたメッセージ、無効な値、および列挙クラスを使用して、 InvalidEnumArgumentException クラスの新しいインスタンスを初期化します。

InvalidEnumArgumentException()

ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs

メッセージなしで、 InvalidEnumArgumentException クラスの新しいインスタンスを初期化します。

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

適用対象

InvalidEnumArgumentException(String)

ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs

指定したメッセージを使用して、 InvalidEnumArgumentException クラスの新しいインスタンスを初期化します。

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

パラメーター

message
String

この例外を除き、表示するメッセージ。

適用対象

InvalidEnumArgumentException(SerializationInfo, StreamingContext)

ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs

注意事項

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

指定したシリアル化データとコンテキストを使用して、 InvalidEnumArgumentException クラスの新しいインスタンスを初期化します。

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

パラメーター

info
SerializationInfo

逆シリアル化に使用する SerializationInfo

context
StreamingContext

逆シリアル化に使用する宛先。

属性

適用対象

InvalidEnumArgumentException(String, Exception)

ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs

指定した詳細な説明と指定した例外を使用して、 InvalidEnumArgumentException クラスの新しいインスタンスを初期化します。

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

パラメーター

message
String

エラーの詳細な説明。

innerException
Exception

この例外の原因である内部例外への参照。

適用対象

InvalidEnumArgumentException(String, Int32, Type)

ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs
ソース:
InvalidEnumArgumentException.cs

引数から生成されたメッセージ、無効な値、および列挙クラスを使用して、 InvalidEnumArgumentException クラスの新しいインスタンスを初期化します。

public:
 InvalidEnumArgumentException(System::String ^ argumentName, int invalidValue, Type ^ enumClass);
public InvalidEnumArgumentException(string? argumentName, int invalidValue, Type enumClass);
public InvalidEnumArgumentException(string argumentName, int invalidValue, Type enumClass);
new System.ComponentModel.InvalidEnumArgumentException : string * int * Type -> System.ComponentModel.InvalidEnumArgumentException
Public Sub New (argumentName As String, invalidValue As Integer, enumClass As Type)

パラメーター

argumentName
String

例外の原因となった引数の名前。

invalidValue
Int32

失敗した引数の値。

enumClass
Type

有効な値を持つ列挙クラスを表す Type

注釈

このコンストラクターは、渡された値が無効であり、値が列挙クラスの値の 1 つである必要があるため、 argumentName パラメーターが無効であることを示すローカライズされたメッセージを作成します。

適用対象