HttpCookieCollection.AllKeys 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得包含 cookie 集合中所有鍵(cookie 名稱)的字串陣列。
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 集合中 cookie 的名稱。
String[] MyCookieNamesArray = Request.Cookies.AllKeys;
Dim MyCookieNamesArray() As String = Request.Cookies.AllKeys