CookieHandler.Path 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定由處理器撰寫的 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> 元素的屬性<來初始化。