HttpCookieCollection.AllKeys 属性
定义
获取一个字符串数组,该数组包含此 Cookie 集合中的所有键(Cookie 名称)。Gets a string array containing all the keys (cookie names) in the cookie collection.
public:
property cli::array <System::String ^> ^ AllKeys { cli::array <System::String ^> ^ get(); };
public string[] AllKeys { get; }
member this.AllKeys : string[]
Public ReadOnly Property AllKeys As String()
属性值
- String[]
Cookie 名称的数组。An array of cookie names.
示例
下面的示例创建一个字符串数组,其中包含客户端的 cookie 集合中的 cookie 的名称。The following example creates a string array containing the names of the cookies in a client's cookie collection.
String[] MyCookieNamesArray = Request.Cookies.AllKeys;
Dim MyCookieNamesArray() As String = Request.Cookies.AllKeys