Return Value
the category identifiers in a string collection. The names are needed in order to add a new right to an existing category.
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); }