HttpCookie.Item[String] 属性

定义

获取 Values 属性的快捷方式。Gets a shortcut to the Values property. 此属性是为了与以前的 Active Server Pages (ASP) 版本兼容而提供的。This property is provided for compatibility with previous versions of Active Server Pages (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 值的键(索引)。The key (index) of the cookie value.

属性值

String

Cookie 值。The cookie value.

适用于

另请参阅