Export (0) Print
Expand All

Roles.Domain Property

Gets the value of the domain of the role-names cookie.

Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)

public static string Domain { get; }
/** @property */
public static String get_Domain ()

public static function get Domain () : String

Not applicable.

Property Value

The Domain of the role names cookie.

The Domain property value is set in the configuration for an ASP.NET application 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 a null reference (Nothing in Visual Basic) and the role-names cookie domain defaults to the behavior of the HttpCookieDomain property.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft