Returns the identifiers of all existing user rights categories.
Return Value
the category identifiers in a string collection. The names are needed in order to add a new right to an existing category.
Example of getting category names that can be displayed in dialogs:
UserRights oUR = new UserRights();
StringCollection oCategoryIDs = oUR.GetCategories();
List<string> lstCategoryNames = new List<string>();
foreach (String strCategoryID in oCategoryIDs)
{
MultiLangString oMLSCategoryID = new MultiLangString();
oMLSCategoryID.SetAsString(strCategoryID);
String strCategoryNameToDisplayInDialog = new Translate().GetStringToDisplayInDialogs(oMLSCategoryID);
lstCategoryNames.Add(strCategoryNameToDisplayInDialog);
}