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