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

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

The specified user does not have a membership account.

Applies to