共用方式為


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

此屬性可透過設定中指定 pathcookieHandler> 元素的屬性<來初始化。

適用於