次の方法で共有


HttpCookieCollection.AllKeys プロパティ

定義

クッキー コレクション内のすべてのキー (クッキー名) が含まれる文字列配列を取得します。

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

適用対象

こちらもご覧ください