Article ID: 192950 - Last Review: November 15, 2006 - Revision: 2.3 HOWTO: Speed Up ADSI Group & Dist. List Membership ChecksThis article was previously published under Q192950 On This PageSUMMARY
In some providers, the ADSI groupobject.IsMember(memberADsPath) method is
implemented to perform membership checks by returning the entire members
collection to the client and then searching for the target's path in the
collection. This operation can consume a lot of time and bandwidth if the
object has a large membership list, like an Exchange distribution list. You
can avoid much of this overhead if the following is true:
The LDAP and NDS providers supplied with the ADSI runtime support this technique. MORE INFORMATION
The following code illustrates the equivalent of the IADsGroup::IsMember
method in Visual Basic using the ADO technique. You can use this code to
check membership in an Exchange 5.5 distribution list. Note that this code,
like the LDAP IADsGroup::IsMember method, does not check for membership in
distribution lists that are members of the target distribution list.
Sample CodeREFERENCES
Microsoft Developer Network: ADSI
| Article Translations
|

Back to the top
