DictionaryEntry.Key プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DictionaryEntry.Key プロパティの意味・解説 

DictionaryEntry.Key プロパティ

キー/値ペア内のキー取得または設定します

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

使用例使用例

Key プロパティの例を次に示します。このコード例は、DictionaryEntry クラストピック取り上げているコード例一部分です。

Public Sub Add(ByVal key
 As Object, ByVal value
 As Object) Implements IDictionary.Add

    ' Add the new key/value pair even if this key already exists in
 the dictionary.
    If ItemsInUse = items.Length Then
        Throw New InvalidOperationException("The
 dictionary cannot hold any more items.")
    End If
    items(ItemsInUse) = New DictionaryEntry(key, value)
    ItemsInUse = ItemsInUse + 1
End Sub
public void Add(object key, object value) 
{
    // Add the new key/value pair even if this key already exists in
 the dictionary.
    if (ItemsInUse == items.Length)
        throw new InvalidOperationException("The dictionary
 cannot hold any more items.");
    items[ItemsInUse++] = new DictionaryEntry(key, value);
}
public:
    virtual void Add(Object^ key, Object^ value)
    {
        // Add the new key/value pair even if this key already exists
        // in the dictionary.
        if (itemsInUse == items->Length)
        {
            throw gcnew InvalidOperationException
                ("The dictionary cannot hold any more items.");
        }
        items[itemsInUse++] = gcnew DictionaryEntry(key, value);
    }
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からDictionaryEntry.Key プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDictionaryEntry.Key プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDictionaryEntry.Key プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

「DictionaryEntry.Key プロパティ」の関連用語

DictionaryEntry.Key プロパティのお隣キーワード
検索ランキング

   

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



DictionaryEntry.Key プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS