How does one abandon a directory search before completion?

Robert Castaneda

To cancel a search, you simply need to close the NamingEnumeration that is returned from the method.

NamingEnumeration enum = "ou=People", attributes );
if ( enum.hasMore() ) {
//cancel search by closing Naming Enumeration

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact