RolePrincipal.RolePrincipal(String, IIdentity) Constructor
.NET Framework 3.0
Instantiates a RolePrincipal object for the specified identity using the specified providerName.
Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public RolePrincipal ( String providerName, IIdentity identity )
public function RolePrincipal ( providerName : String, identity : IIdentity )
Not applicable.
Parameters
- providerName
The name of the role provider for the user.
- identity
The user identity to create the RolePrincipal for.
This overload of the RolePrincipal constructor creates a new RolePrincipal object and initializes its property values. The ProviderName property is set to the value specified in the providerName parameter.
For information on enabling role management, see the Roles class.
Community Additions
ADD
Show: