通过


CookieHandler.Domain 属性

定义

获取或设置用于 Cookie 的域。

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

属性值

用于 Cookie 的域。 默认值为 null

注解

HttpCookie.Domain 属性相对应。

可以通过在配置中指定 domaincookieHandler> 元素上的<属性来初始化该属性。

适用于

另请参阅