Language

SafeArrayTypeMismatchException コンストラクター

定義

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

オーバーロード

名前 説明
SafeArrayTypeMismatchException()

既定値を使用して、 SafeArrayTypeMismatchException クラスの新しいインスタンスを初期化します。

SafeArrayTypeMismatchException(String)

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

SafeArrayTypeMismatchException(SerializationInfo, StreamingContext)
古い.

シリアル化データから SafeArrayTypeMismatchException クラスの新しいインスタンスを初期化します。

SafeArrayTypeMismatchException(String, Exception)

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

SafeArrayTypeMismatchException()

ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs

既定値を使用して、 SafeArrayTypeMismatchException クラスの新しいインスタンスを初期化します。

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

注釈

SafeArrayTypeMismatchException は、SystemException から継承されます。 このコンストラクターは、次の表に示すように、 Exception オブジェクトのプロパティを設定します。

財産 価値
InnerException null。
Message ローカライズされたエラー メッセージ文字列。

適用対象

SafeArrayTypeMismatchException(String)

ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs

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

public:
 SafeArrayTypeMismatchException(System::String ^ message);
public SafeArrayTypeMismatchException(string message);
public SafeArrayTypeMismatchException(string? message);
new System.Runtime.InteropServices.SafeArrayTypeMismatchException : string -> System.Runtime.InteropServices.SafeArrayTypeMismatchException
Public Sub New (message As String)

パラメーター

message
String

例外の理由を示すメッセージ。

注釈

SafeArrayTypeMismatchException は、SystemException から継承されます。 このコンストラクターは、次の表に示すように、 Exception オブジェクトのプロパティを設定します。

財産 価値
InnerException null。
Message message

適用対象

SafeArrayTypeMismatchException(SerializationInfo, StreamingContext)

ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs

注意事項

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

シリアル化データから SafeArrayTypeMismatchException クラスの新しいインスタンスを初期化します。

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

パラメーター

info
SerializationInfo

シリアル化されたオブジェクト データを保持するオブジェクト。

context
StreamingContext

ソースまたは変換先に関するコンテキスト情報。

属性

例外

info は nullです。

注釈

このコンストラクターは、ストリーム経由で送信される例外オブジェクトを再構成するために、逆シリアル化中に呼び出されます。 詳細については、System.Runtime.Serializationを参照してください。

SafeArrayTypeMismatchException は、SystemException から継承されます。

適用対象

SafeArrayTypeMismatchException(String, Exception)

ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs
ソース:
SafeArrayTypeMismatchException.cs

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

public:
 SafeArrayTypeMismatchException(System::String ^ message, Exception ^ inner);
public SafeArrayTypeMismatchException(string message, Exception inner);
public SafeArrayTypeMismatchException(string? message, Exception? inner);
new System.Runtime.InteropServices.SafeArrayTypeMismatchException : string * Exception -> System.Runtime.InteropServices.SafeArrayTypeMismatchException
Public Sub New (message As String, inner As Exception)

パラメーター

message
String

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

inner
Exception

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

注釈

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

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

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

こちらもご覧ください

適用対象