Hashtable.Keys プロパティ

定義

ICollection内のキーを含むHashtableを取得します。

public:
 virtual property System::Collections::ICollection ^ Keys { System::Collections::ICollection ^ get(); };
public virtual System.Collections.ICollection Keys { get; }
member this.Keys : System.Collections.ICollection
Public Overridable ReadOnly Property Keys As ICollection

プロパティ値

ICollection内のキーを含むHashtable

実装

注釈

ICollection内のキーの順序は指定されていませんが、ICollection メソッドによって返されるValues内の関連する値と同じ順序です。

返された ICollection は静的コピーではありません。代わりに、 ICollection は元の Hashtableのキーを参照します。 そのため、 Hashtable への変更は引き続き ICollectionに反映されます。

このプロパティの値の取得は、 O(1) 操作です。

適用対象

こちらもご覧ください