Gets a list of the roles that a user is in.

Namespace:  Novalys.VisualGuard.Security.WebForm
Assembly:  Novalys.VisualGuard.Security.WebForm (in Novalys.VisualGuard.Security.WebForm.dll) Version: 3.2.912.1 (3.2.912.01)

Syntax

C#
public override string[] GetRolesForUser(
	string username
)
Visual Basic (Declaration)
Public Overrides Function GetRolesForUser ( _
	username As String _
) As String()

Parameters

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

Return Value

A string array containing the names of all the roles that the specified user is in.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionusername is longer than 256 characters.
System..::.ArgumentNullExceptionusername is null.

See Also