SimpleRoleProvider.GetRolesForUser(String) SimpleRoleProvider.GetRolesForUser(String) SimpleRoleProvider.GetRolesForUser(String) Method

Definition

Returns a list of the roles that a specified user is in.

public override string[] GetRolesForUser (string username);
override this.GetRolesForUser : string -> string[]
Public Overrides Function GetRolesForUser (username As String) As String()
Parameters
username
String String String

The user to return a list of roles for.

Returns
String[]

The names of all of the roles that the specified user is a member of.

Exceptions

Applies to