DefaultRoleProvider.GetRolesForUser Method (String)
Gets the roles for a user.
Namespace: System.Web.Providers
Assembly: System.Web.Providers (in System.Web.Providers.dll)
Syntax
public override string[] GetRolesForUser(
string username
)
public:
virtual array<String^>^ GetRolesForUser(
String^ username
) override
override GetRolesForUser :
username:string -> string[]
Public Overrides Function GetRolesForUser (
username As String
) As String()
Parameters
username
Type: System.StringThe user to return a list of roles for.
Return Value
Type: System.String[]
The names of all the roles that the specified user is in.
See Also
DefaultRoleProvider Class
System.Web.Providers Namespace
ASP.NET Identity
Return to top