AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IRole.AddCommunityMember Method

Adds a community member type to a role.

void AddCommunityMember(
int communityID,
CommunityMemberTypes memberType
);

#### Parameters

communityID
  The community ID the user to be added belongs to; must be positive.
memberType
  The member type of the user in the community; cannot be `null`.

#### Remarks

Adding a nonexistent ID will succeed until the role has been updated via the `Store` method, at which time the role instance will get refreshed.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentException | The community ID is not positive.

#### See Also

IRole Interface | Plumtree.Remote.PRC.Collaboration.Security Namespace