次の方法で共有


CookieHandler.Path プロパティ

定義

ハンドラーによって書き込まれた Cookie の仮想パスを取得または設定します。

public:
 virtual property System::String ^ Path { System::String ^ get(); void set(System::String ^ value); };
public virtual string Path { get; set; }
member this.Path : string with get, set
Public Overridable Property Path As String

プロパティ値

仮想パス。 既定値は、ASP.NET アプリケーションのルートです。

例外

nullまたは空の値を設定しようとしました。

注釈

このプロパティは、 HttpCookie.Path プロパティに対応します。

このプロパティは、configuration の <cookieHandler> 要素にpath属性を指定することで初期化できます。

適用対象