Gets a list of users in the specified role.
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[] GetUsersInRole( string roleName ) |
Visual Basic |
---|
Public Overrides Function GetUsersInRole ( roleName As String ) As String() |
Parameters
- roleName
- Type: System..::..String
The name of the role to get the list of users for.
Return Value
Type: array<String>[]()[][]A string array containing the names of all the users who are members of the specified role.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | roleName is an empty string
-or- roleName is longer than 64 characters. |
System..::..ArgumentNullException | roleName is null. |