RoleManagerSection.Domain 属性

定义

获取或设置与用于缓存角色名称的 Cookie 关联的域的名称。

public:
 property System::String ^ Domain { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("domain")]
public string Domain { get; set; }
[<System.Configuration.ConfigurationProperty("domain")>]
member this.Domain : string with get, set
Public Property Domain As String

属性值

String

用于缓存角色名称的 Cookie 的 Domain。 默认值为空字符串 ("")。

属性

注解

Domain属性通过使用domain配置元素的属性roleManager在 ASP.NET 应用程序的配置中设置。 如果在属性的配置 domain 中未指定任何值,则 Domain 属性返回 null ,并且角色名称 Cookie 域默认为属性的行为 Domain 。 默认值为一个空字符串。

适用于