Share via


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 屬性。

屬性可以藉由在組態中的<cookieHandler>元素上指定 path 屬性來初始化。

適用於