Hashtable.Keys プロパティ

定義

Hashtable 内のキーを格納している ICollection を取得します。

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

返される ICollection は静的コピーではありません。代わりに、 ICollection は元 Hashtableの のキーを参照します。 したがって、 に対する Hashtable 変更は、 に ICollection反映され続けます。

このプロパティの値を取得することは操作です O(1)

適用対象

こちらもご覧ください