IRequestCookieCollection.Item[String] Proprietà

Definizione

Ottiene il valore con la chiave specificata.

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

Parametri

key
String

Chiave del valore da ottenere.

Valore della proprietà

Elemento con la chiave specificata o null se la chiave non è presente.

Eccezioni

key è null.

Commenti

IRequestCookieCollection ha un contratto indicizzatore diverso da IDictionary<TKey,TValue>, perché restituirà null le voci mancanti anziché generare un'eccezione.

Si applica a