All Members objects support the COM interface IADsMembers. This interface is derived from IDispatch to make it a dual interface. The interface definition is as follows:
[ object, uuid(IID_IADsMembers), oleautomation, dual ]
interface IADsMembers: IDispatch
{
// Read-only properties.
[propget]
HRESULT Count([out, retval]long *plCount);
[propget, restricted, id(-4)]
HRESULT _NewEnum([out, retval]Iunknown **ppEnumerator);
// Read-write properties
[propget]
HRESULT Filter([out, retval]VARIANT *pvFilter);
[propput]
HRESULT Filter([in]VARIANT vFilter);
};
Method | Description |
Filter | Gets and sets the filter. The syntax of the entries in the Filter array is the same as the Filter used on the IADsContainer interface. |
Count | Gets the number of items in the container. If the filter is set then count returns only the number of items that fit the filter description. |
_NewEnum | Returns an enumerator dependent object that implements IEnumVARIANT. For more information, see "Enumerator Objects," later in this chapter. |