3.3 AccountRightsCollection

A collection of AccountRights objects.

3.3.1 Properties

The following table lists properties along with their access and descriptions.

Property

Access

Description

Application

R/O

Application. The Application object.

Count

R/O

Long. The number of objects in this collection.

_NewEnum

R/O

Enumeration object. Implements IEnumVARIANT. For Windows only.

Parent

R/O

Account. The Account object that owns this collection.

3.3.2 Methods

Add(VARIANT Address, Long Rights)

If Address is an Address object, this method creates a new AccountRights object for that address. If Address is an Addresses collection, this method creates a new AccountRights object for each address in the collection. Rights specifies the rights to be given. The Rights value is derived from the AccountRightsConstants combined with the bit-wise inclusive OR operator. This method does not return the newly created object.

AccountRights Item(Long Index)

DEFAULT. Returns the AccountRights object located at the given Index in the collection. Valid indexes are 1 through Count, inclusive. Throws an exception if the Index is outside of this range.

3.3.3 Remarks

An AccountRightsCollection is refreshed when its parent object is refreshed. When an AccountRightsCollection is refreshed, it recursively refreshes its contained AccountRights objects.