NameValueCollection.GetKey(Int32) 메서드

정의

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

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

반환

String의 지정된 인덱스에 있는 키가 들어 있는 NameValueCollection이거나, 없는 경우 null입니다.

예외

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

설명

이 방법은 O(1) 작업에 설명 합니다.

적용 대상

추가 정보