KeyNotFoundException クラスとは? わかりやすく解説

KeyNotFoundException クラス

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

コレクション内の要素アクセスするために指定されキーが、コレクションいずれのキーとも一致しない場合スローされる例外

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

<SerializableAttribute> _
<ComVisibleAttribute(True)> _
Public Class KeyNotFoundException
    Inherits SystemException
    Implements ISerializable
Dim instance As KeyNotFoundException
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
public class KeyNotFoundException : SystemException,
 ISerializable
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
public ref class KeyNotFoundException : public
 SystemException, ISerializable
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
public class KeyNotFoundException extends SystemException
 implements ISerializable
SerializableAttribute 
ComVisibleAttribute(true) 
public class KeyNotFoundException extends
 SystemException implements ISerializable
解説解説

コレクション存在しないキー使用してコレクションから要素取得しようとする操作実行されると、KeyNotFoundExceptionスローさます。

KeyNotFoundException は、値 0x80131577 を保持する HRESULT COR_E_KEYNOTFOUND を使用します

KeyNotFoundException クラスインスタンス初期プロパティ値の一覧については、KeyNotFoundException コンストラクタトピック参照してください

継承階層継承階層
System.Object
   System.Exception
     System.SystemException
      System.Collections.Generic.KeyNotFoundException
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
KeyNotFoundException メンバ
System.Collections.Generic 名前空間



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

辞書ショートカット

すべての辞書の索引

「KeyNotFoundException クラス」の関連用語

KeyNotFoundException クラスのお隣キーワード
検索ランキング

   

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



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

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

©2024 GRAS Group, Inc.RSS