NameObjectCollectionBase.KeysCollection.Get(Int32) NameObjectCollectionBase.KeysCollection.Get(Int32) NameObjectCollectionBase.KeysCollection.Get(Int32) NameObjectCollectionBase.KeysCollection.Get(Int32) Method

定义

获取集合的指定索引处的键。Gets the key at the specified index of the collection.

public:
 virtual System::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 Int32 Int32 Int32

要从集合中获取的从零开始的键索引。The zero-based index of the key to get from the collection.

返回

一个 String,它包含集合的指定索引处的键。A String that contains the key at the specified index of the collection.

异常

index 超出了集合的有效索引范围。index is outside the valid range of indexes for the collection.

注解

此方法为 O (1) 操作。This method is an O(1) operation.

适用于