DictionaryEntry.Key プロパティ
アセンブリ: 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); }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDictionaryEntry.Key プロパティを検索する場合は、下記のリンクをクリックしてください。

- DictionaryEntry.Key プロパティのページへのリンク