Gets a list of the roles that a user is in.
Namespace: Novalys.VisualGuard.Security.WebFormAssembly: Novalys.VisualGuard.Security.WebForm (in Novalys.VisualGuard.Security.WebForm.dll) Version: 2017.0.101.17 (2017.0.101.17)
Syntax
C# |
---|
public override string[] GetRolesForUser( string username ) |
Visual Basic |
---|
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
Type: array<String>[]()[][]A string array containing the names of all the roles that the specified user is in.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | username is longer than 256 characters. |
System..::..ArgumentNullException | username is null. |