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
要从集合中获取的键的从零开始的索引。
返回
包含集合的指定索引处的键的 A String 。
例外
index 超出集合的有效索引范围。
注解
此方法是 O(1) 操作。