Redigera

Dela via


RoleManagerSection.Domain Property

Definition

Gets or sets the name of the domain that is associated with the cookie that is used to cache role names.

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

Property Value

The Domain of the cookie used to cache role names. The default is an empty string ("").

Attributes

Remarks

The Domain property is set in the configuration for an ASP.NET application by using the domain attribute of the roleManager configuration element. If no value is specified in the configuration for the domain attribute, the Domain property returns null and the role names cookie domain defaults to the behavior of the Domain property. The default is an empty string.

Applies to