通过


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> 元素上的<属性来初始化该属性。

适用于