NameObjectCollectionBase.KeysCollection.Get(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在集合指定的索引處取得金鑰。
public:
virtual System::String ^ Get(int index);
public virtual string Get(int index);
public virtual string? Get(int index);
abstract member Get : int -> string
override this.Get : int -> string
Public Overridable Function Get (index As Integer) As String
參數
- index
- Int32
從集合中取得的金鑰的零基索引。
傳回
String A 包含集合指定索引的鍵。
例外狀況
index 超出該集合有效索引範圍。
備註
此方法是 O(1) 作業。