RemoveAt method

void RemoveAt(
  1. int index
)
Adds a member linked to a Contact Group. The Id of the contact group. Adds a member linked to a specific contact's e-mail address. The Id of the contact. The contact's address to link to. Adds a member linked to a contact's first available e-mail address. The Id of the contact. Adds a member linked to an Active Directory user. The SMTP address of the member. Adds a member linked to an Active Directory user. The address of the member. The routing type of the address. Adds a member linked to an Active Directory contact. The SMTP address of the Active Directory contact. Adds a member linked to an Active Directory contact. The address of the Active Directory contact. The routing type of the address. Adds a member linked to a Public Group. The SMTP address of the Public Group. Adds a member linked to a mail-enabled Public Folder. The SMTP address of the mail-enabled Public Folder. Adds a one-off member. The display name of the member. The address of the member. The routing type of the address. Adds a one-off member. The display name of the member. The SMTP address of the member. Adds a member that is linked to a specific e-mail address of a contact. The contact to link to. The contact's e-mail address to link to. Removes a member at the specified index. The index of the member to remove.

Implementation

// void AddContactGroup(ItemId contactGroupId)
//        {
//            this.Add(new GroupMember(contactGroupId));
//        }

/// <summary>
/// Adds a member linked to a specific contact's e-mail address.
/// </summary>
/// <param name="contactId">The Id of the contact.</param>
/// <param name="addressToLink">The contact's address to link to.</param>
// void AddPersonalContact(ItemId contactId, String addressToLink)
//        {
//            this.Add(new GroupMember(contactId, addressToLink));
//        }

/// <summary>
/// Adds a member linked to a contact's first available e-mail address.
/// </summary>
/// <param name="contactId">The Id of the contact.</param>
// void AddPersonalContact(ItemId contactId)
//        {
//            this.AddPersonalContact(contactId, null);
//        }

/// <summary>
/// Adds a member linked to an Active Directory user.
/// </summary>
/// <param name="smtpAddress">The SMTP address of the member.</param>
// void AddDirectoryUser(String smtpAddress)
//        {
//            this.AddDirectoryUser(smtpAddress, EmailAddress.SmtpRoutingType);
//        }

/// <summary>
/// Adds a member linked to an Active Directory user.
/// </summary>
/// <param name="address">The address of the member.</param>
/// <param name="routingType">The routing type of the address.</param>
// void AddDirectoryUser(String address, String routingType)
//        {
//            this.Add(new GroupMember(address, routingType, MailboxType.Mailbox));
//        }

/// <summary>
/// Adds a member linked to an Active Directory contact.
/// </summary>
/// <param name="smtpAddress">The SMTP address of the Active Directory contact.</param>
// void AddDirectoryContact(String smtpAddress)
//        {
//            this.AddDirectoryContact(smtpAddress, EmailAddress.SmtpRoutingType);
//        }

/// <summary>
/// Adds a member linked to an Active Directory contact.
/// </summary>
/// <param name="address">The address of the Active Directory contact.</param>
/// <param name="routingType">The routing type of the address.</param>
// void AddDirectoryContact(String address, String routingType)
//        {
//            this.Add(new GroupMember(address, routingType, MailboxType.Contact));
//        }

/// <summary>
/// Adds a member linked to a Public Group.
/// </summary>
/// <param name="smtpAddress">The SMTP address of the Public Group.</param>
// void AddPublicGroup(String smtpAddress)
//        {
//            this.Add(new GroupMember(smtpAddress, EmailAddress.SmtpRoutingType, MailboxType.PublicGroup));
//        }

/// <summary>
/// Adds a member linked to a mail-enabled Public Folder.
/// </summary>
/// <param name="smtpAddress">The SMTP address of the mail-enabled Public Folder.</param>
// void AddDirectoryPublicFolder(String smtpAddress)
//        {
//            this.Add(new GroupMember(smtpAddress, EmailAddress.SmtpRoutingType, MailboxType.PublicFolder));
//        }

/// <summary>
/// Adds a one-off member.
/// </summary>
/// <param name="displayName">The display name of the member.</param>
/// <param name="address">The address of the member.</param>
/// <param name="routingType">The routing type of the address.</param>
// void AddOneOff(String displayName, String address, String routingType)
//        {
//            this.Add(new GroupMember(displayName, address, routingType));
//        }

/// <summary>
/// Adds a one-off member.
/// </summary>
/// <param name="displayName">The display name of the member.</param>
/// <param name="smtpAddress">The SMTP address of the member.</param>
// void AddOneOff(String displayName, String smtpAddress)
//        {
//            this.AddOneOff(displayName, smtpAddress, EmailAddress.SmtpRoutingType);
//        }

/// <summary>
/// Adds a member that is linked to a specific e-mail address of a contact.
/// </summary>
/// <param name="contact">The contact to link to.</param>
/// <param name="emailAddressKey">The contact's e-mail address to link to.</param>
// void AddContactEmailAddress(Contact contact, EmailAddressKey emailAddressKey)
//        {
//            this.Add(new GroupMember(contact, emailAddressKey));
//        }

/// <summary>
/// Removes a member at the specified index.
/// </summary>
/// <param name="index">The index of the member to remove.</param>
void RemoveAt(int index) {
  if (index < 0 || index >= this.Count) {
    throw new ArgumentException("index: $index, IndexIsOutOfRange");
  }

  this.InternalRemoveAt(index);
}