KeyNotFoundException コンストラクタ ()とは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > KeyNotFoundException コンストラクタ ()の意味・解説 

KeyNotFoundException コンストラクタ ()

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

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

名前空間: System.Collections.Generic
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Dim instance As New KeyNotFoundException
public KeyNotFoundException ()
public:
KeyNotFoundException ()
public KeyNotFoundException ()
public function KeyNotFoundException ()
解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
KeyNotFoundException クラス
KeyNotFoundException メンバ
System.Collections.Generic 名前空間

KeyNotFoundException コンストラクタ (String, Exception)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

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

名前空間: System.Collections.Generic
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Sub New ( _
    message As String, _
    innerException As Exception _
)
Dim message As String
Dim innerException As Exception

Dim instance As New KeyNotFoundException(message,
 innerException)
public KeyNotFoundException (
    string message,
    Exception innerException
)
public:
KeyNotFoundException (
    String^ message, 
    Exception^ innerException
)
public KeyNotFoundException (
    String message, 
    Exception innerException
)
public function KeyNotFoundException (
    message : String, 
    innerException : Exception
)

パラメータ

message

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

innerException

現在の例外の原因である例外innerException パラメータnull 参照 (Visual Basic では Nothing) でない場合は、内部例外処理する catch ブロック現在の例外が発生します

解説解説

前の例外直接結果としてスローされる例外については、InnerException プロパティに、前の例外への参照格納されます。InnerException プロパティは、コンストラクタ渡されたものと同じ値を返しますInnerException プロパティによって内部例外値がコンストラクタ渡されなかった場合は、null 参照 (Visual Basic では Nothing) を返します

KeyNotFoundException クラスインスタンス初期プロパティ値を次の表に示します

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
KeyNotFoundException クラス
KeyNotFoundException メンバ
System.Collections.Generic 名前空間

KeyNotFoundException コンストラクタ (String)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

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

名前空間: System.Collections.Generic
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

public KeyNotFoundException (
    string message
)
public:
KeyNotFoundException (
    String^ message
)
public KeyNotFoundException (
    String message
)
public function KeyNotFoundException (
    message : String
)

パラメータ

message

エラー説明するメッセージ

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
KeyNotFoundException クラス
KeyNotFoundException メンバ
System.Collections.Generic 名前空間

KeyNotFoundException コンストラクタ (SerializationInfo, StreamingContext)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

シリアル化したデータ使用して、KeyNotFoundException クラス新しインスタンス初期化します。

名前空間: System.Collections.Generic
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
Dim info As SerializationInfo
Dim context As StreamingContext

Dim instance As New KeyNotFoundException(info,
 context)
protected KeyNotFoundException (
    SerializationInfo info,
    StreamingContext context
)
protected:
KeyNotFoundException (
    SerializationInfo^ info, 
    StreamingContext context
)
protected KeyNotFoundException (
    SerializationInfo info, 
    StreamingContext context
)
protected function KeyNotFoundException (
    info : SerializationInfo, 
    context : StreamingContext
)

パラメータ

info

スローされている例外に関するシリアル化済みオブジェクト データ保持している SerializationInfo。

context

転送元または転送先に関すコンテキスト情報含んでいる StreamingContext。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
KeyNotFoundException クラス
KeyNotFoundException メンバ
System.Collections.Generic 名前空間

KeyNotFoundException コンストラクタ

KeyNotFoundException クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

参照参照

関連項目

KeyNotFoundException クラス
KeyNotFoundException メンバ
System.Collections.Generic 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「KeyNotFoundException コンストラクタ ()」の関連用語

KeyNotFoundException コンストラクタ ()のお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



KeyNotFoundException コンストラクタ ()のページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS