Documentation for this section has not yet been entered.
The RolePrincipal.ProviderName property exposes the name of the role provider that manages the role information for the user represented by the System.Web.Security.RolePrincipal object. This enables you to access the specific role-provider instance for a user by using the Roles.Providers property of the System.Web.Security.Roles class regardless of whether the provider is the default provider for the application. For example, you may create a method that takes a System.Web.Security.RolePrincipal as input and returns the list of roles for the represented user. You can ensure that the appropriate role provider is used to return the list of roles for the System.Web.Security.RolePrincipal by calling the RoleProvider.GetRolesForUser(string) method of the role provider from the Roles.Providers collection that is indexed by the RolePrincipal.ProviderName property value.
To populate the System.Web.Security.RolePrincipal object for each request, you must use a RoleManagerModule.GetRoles event handler defined in the Global.asax file for the application.