getAreaNames()

The method returns the names of areas.

Synopsis

public dyn_string getAreaNames(anytype um);

Return Value

Names of areas.

Errors

Errors are shown in the log viewer.

Example

#uses "classes/userManagement/UserManagement"
main()
{
  shared_ptr<UserManagement> m_um = UserManagement::getInstance();
  anytype area1 = new UserManagementArea("Area_1");
  m_um.addArea(area1);
  m_um.saveChanges();
  anytype group = new UserManagementGroup("Group1");
  m_um.addGroup(group);
  m_um.saveChanges();
  group.addArea(area6);
  m_um.saveChanges();
  DebugTN("Get area names:", group.getAreaNames(m_um));
}

Assignment

User administration

See also

getArea(), getAllGroups(), getAreaByName()