次の方法で共有


PlatformNotSupportedException コンストラクター

定義

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

オーバーロード

名前 説明
PlatformNotSupportedException()

既定のプロパティを使用して、 PlatformNotSupportedException クラスの新しいインスタンスを初期化します。

PlatformNotSupportedException(String)

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

PlatformNotSupportedException(SerializationInfo, StreamingContext)
古い.

シリアル化されたデータを使用して、 PlatformNotSupportedException クラスの新しいインスタンスを初期化します。

PlatformNotSupportedException(String, Exception)

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

PlatformNotSupportedException()

ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs

既定のプロパティを使用して、 PlatformNotSupportedException クラスの新しいインスタンスを初期化します。

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

注釈

このコンストラクターの呼び出しによって PlatformNotSupportedException クラスのインスタンスが作成されると、次のプロパティが指定した値に初期化されます。

財産 価値
InnerException null
Message 空の文字列。

適用対象

PlatformNotSupportedException(String)

ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs

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

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

パラメーター

message
String

例外の理由を説明するテキスト メッセージ。

注釈

このコンストラクターの呼び出しによって PlatformNotSupportedException クラスのインスタンスが作成されると、次のプロパティが指定した値に初期化されます。

財産 価値
InnerException null
Message エラー メッセージ文字列。

適用対象

PlatformNotSupportedException(SerializationInfo, StreamingContext)

ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs

注意事項

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

シリアル化されたデータを使用して、 PlatformNotSupportedException クラスの新しいインスタンスを初期化します。

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

パラメーター

info
SerializationInfo

スローされる例外に関するシリアル化されたオブジェクト データを保持する SerializationInfo

context
StreamingContext

ソースまたは宛先に関するコンテキスト情報を含む StreamingContext

属性

適用対象

PlatformNotSupportedException(String, Exception)

ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs
ソース:
PlatformNotSupportedException.cs

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

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)

パラメーター

message
String

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

inner
Exception

現在の例外の原因である例外。 inner パラメーターがnullされていない場合、内部例外を処理するcatch ブロックで現在の例外が発生します。

注釈

前の例外の直接の結果としてスローされる例外は、 InnerException プロパティに前の例外への参照を含める必要があります。 InnerException プロパティは、コンストラクターに渡されるのと同じ値を返します。または、null プロパティがコンストラクターに内部例外値を提供しない場合はInnerExceptionします。

次の表に、 PlatformNotSupportedExceptionのインスタンスの初期プロパティ値を示します。

財産 価値
InnerException 内部例外参照。
Message エラー メッセージ文字列。

適用対象