Add method

void Add(
  1. GroupMember member
)
Adds a member to the collection. The member to add.

Implementation

void Add(GroupMember member) {
  EwsUtilities.ValidateParam(member, "member");

  EwsUtilities.Assert(member.Key == null, "GroupMemberCollection.Add",
      "member.Key is not null.");

  EwsUtilities.Assert(!this.Contains(member), "GroupMemberCollection.Add",
      "The member is already in the collection");

  this.InternalAdd(member);
}