Description
Retrieves the keys and names of all the employee roles.
Syntax
Example
| Getting all roles (C#) | Copy Code |
|---|
public void getlist() { try { EmployeeRoleSetupParamsCollection getlistParams; getlistParams = oRoleSrv.GetEmployeeRoleSetupList(); String resultSet = ""; foreach (EmployeeRoleSetupParams record in getlistParams) { resultSet = resultSet + record.TypeID + "\t" + record.Name + "\n"; } Interaction.MsgBox(resultSet, (Microsoft.VisualBasic.MsgBoxStyle)(0), null); } catch (Exception ex) { Interaction.MsgBox(ex.Message, (Microsoft.VisualBasic.MsgBoxStyle)(0), null); } }
|
|
See Also