IADsMembers

The IADsMembers interface enables a dependent COM object to define and manage lists of Active Directory object references.

Properties accessed by IADsMembers are defined on the ADSI Members Object.

To manage sets of arbitrary data elements that are not object references, use IADsCollection.

When to Implement

Implement IADsMembers only when you are providing an Active Directory implementation for your directory service that supports group memberships for individual accounts.

When to Use

Use the IADsMembers methods when you manage associations among Active Directory objects. Examples of members of a group in the Active Directory architecture are:

  1. The collection of ADSI Group Objects that represent the groups to which a user belongs.
  2. The collection of ADSI Members Objects that represent the members of a group.

When you need to manage a list of Active Directory object references, use IADsMembers. When you are working with Active Directory objects that contain other objects, for instance when working with the Active Directory hierarchical directory structure or the network topology, use IADsContainer.

Methods in VTable Order

IUnknown Methods Description
QueryInterface Returns pointers to supported interfaces.
AddRef Increments reference count.
Release Decrements reference count.

IDispatch Methods Description
GetTypeInfoCount Gets the number of type descriptions.
GetTypeInfo Gets a description of object's programmable interface.
GetIDsOfNames Maps name of method or property to DISPID.
Invoke Calls one of the object's methods, or gets/sets one of its properties.

IADsMembers Properties and Methods Description
get_Count Gets the number of members..
get__NewEnum Retrieve interface on an enumerator object.
get/put_Filter Gets and sets the filter for selection.