HttpCookie.Item[String] 屬性

定義

取得 Values 屬性的捷徑。 提供這個屬性來與 ASP 先前版本相容。

public:
 property System::String ^ default[System::String ^] { System::String ^ get(System::String ^ key); void set(System::String ^ key, System::String ^ value); };
public string this[string key] { get; set; }
member this.Item(string) : string with get, set
Default Public Property Item(key As String) As String

參數

key
String

Cookie 值的索引鍵 (索引)。

屬性值

String

Cookie 值。

適用於

另請參閱