Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IDiscussion.AddModerator Method

Adds a user to the discussion moderator list.

void AddModerator(
int userID
);

#### Parameters

userID
  The user id; must be positive.

#### Remarks

The added ID will not be validated, ie. adding an invalid, non-negative id will both be acceptable and retrievable upon calling `GetModeratorIDs`. The user who creates a discussion is not added automatically as its moderator.

#### Exceptions

Exception Type | Condition
--- | ---
InvalidOperationException | The object has not yet been stored or has already been removed.
ArgumentException | The userID is not positive.

#### See Also

IDiscussion Interface | Plumtree.Remote.PRC.Collaboration.Discussion Namespace