IRequestCookieCollection.Item[String] 속성

정의

지정된 키를 사용하여 값을 가져옵니다.

public:
 property System::String ^ default[System::String ^] { System::String ^ get(System::String ^ key); };
public string this[string key] { get; }
public string? this[string key] { get; }
member this.Item(string) : string
Default Public ReadOnly Property Item(key As String) As String

매개 변수

key
String

가져올 값의 키입니다.

속성 값

지정된 키를 가진 요소이거나 null 키가 없는 경우 입니다.

예외

key가 null인 경우

설명

IRequestCookieCollection에는 예외를 throw하는 대신 누락된 항목에 대해 반환 null 되므로 와 다른 인덱서 계약이 IDictionary<TKey,TValue>있습니다.

적용 대상