Udostępnij przez


IRequestCookieCollection.Item[String] Właściwość

Definicja

Pobiera wartość z określonym kluczem.

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

Parametry

key
String

Klucz wartości do pobrania.

Wartość właściwości

Element z określonym kluczem lub null jeśli klucz nie jest obecny.

Wyjątki

klucz ma wartość null.

Uwagi

IRequestCookieCollection ma inny kontrakt indeksatora niż IDictionary<TKey,TValue>, ponieważ zwróci null brakujące wpisy, a nie zgłasza wyjątek.

Dotyczy