语言

NameObjectCollectionBase.KeysCollection.Get(Int32) 方法

定义

获取集合的指定索引处的键。

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

要从集合中获取的键的从零开始的索引。

返回

包含集合的指定索引处的键的 A String 。

例外

index 超出集合的有效索引范围。

注解

此方法是 O(1) 操作。

适用于