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