lr.vuser_group
Returns the name of the Vuser group.
C#
int lr.vuser_group ( string group_name );
VB.NET
Function lr.vuser_group ( ByRef group_name As String ) as Integer
| Informational Functions |
Arguments
| Name | Comments |
|---|---|
| group_name | Output argument for the group name. |
The lr.vuser_group function sets the group_name output argument to the name of the Vuser group to which the Vuser belongs.
Return Values
This function always returns zero.
Parameterization
Parameterization is not applicable to this function.
Example
The following example retrieves the Vuser group name, validates it, and sends it to the output.
string vusergroup=lr.vuser_group;
if(vusergroup==null)
lr.output_message("Failed to get the Vuser name");
else
lr.output_message("Vuser group = " + lr.vuser_group);

