NameValueCollection.GetKey(Int32) 메서드

정의

지정된 인덱스의 NameValueCollection키를 가져옵니다.

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

컬렉션에서 가져올 키의 인덱스(0부터 시작)입니다.

반품

지정된 인덱NameValueCollection스의 키를 포함하는 AString(있는 경우)이고, null그렇지 않으면 .

예외

index 가 컬렉션의 유효한 인덱스 범위를 벗어났습니다.

설명

이 메서드는 O(1) 작업입니다.

적용 대상

추가 정보