Modifying groups
To modify a forum group, you must perform the following:
- Get an instance of the manager.
Get an instance of the ForumsManager object. - Get the specified forum group.
Get an instance of the forum group. For more information, read Querying groups. - Modify the instance of the group.
Update the values of the properties of the group. - Save the changes.
Save the changes to the manager.
Here is a code example:
public static void ModifyForumGroup(Guid groupId, string newDesription)
{
ForumsManager forumsManager = ForumsManager.GetManager();
ForumGroup forumGroup = forumsManager.GetGroup(groupId);
forumGroup.Description = newDesription;
forumsManager.SaveChanges();
}