Export (0) Print
Expand All

SimpleRoleProvider.GetRolesForUser Method

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

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

public override string[] GetRolesForUser(
	string username
)

Parameters

username
Type: System.String
The user to return a list of roles for.

Return Value

Type: System.String[]
The names of all of the roles that the specified user is a member of.

ExceptionCondition
InvalidOperationException

The specified user does not have a membership account.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
Show:
© 2014 Microsoft