IReadOnlyDictionary<TKey,TValue>.Keys 屬性

定義

取得可列舉集合,其中包含唯讀字典中的索引鍵。

public:
 property System::Collections::Generic::IEnumerable<TKey> ^ Keys { System::Collections::Generic::IEnumerable<TKey> ^ get(); };
public System.Collections.Generic.IEnumerable<TKey> Keys { get; }
member this.Keys : seq<'Key>
Public ReadOnly Property Keys As IEnumerable(Of TKey)

屬性值

IEnumerable<TKey>

包含唯讀字典中索引鍵的可列舉集合。

備註

未指定可列舉集合中的索引鍵順序,但實作必須保證索引鍵的順序與 屬性所 Values 傳回之可列舉集合中的對應值相同。

適用於