private static LdapEntry[] toArray(LdapSearchResults results) { ArrayList entries; entries = new ArrayList(); while(results.hasMore()) entries.Add(results.next()); return((LdapEntry[]) entries.ToArray(typeof(LdapEntry))); }
/// <summary> /// /// Notifies the server not to send additional results associated with /// this LdapSearchResults object, and discards any results already /// received. /// /// </summary> /// <param name="results"> An object returned from a search. /// /// </param> /// <param name="cons"> The contraints specific to the operation. /// /// </param> /// <exception> LdapException A general exception which includes an error /// message and an Ldap error code. /// </exception> public virtual void Abandon(LdapSearchResults results, LdapConstraints cons) { results.Abandon(); return ; }
//************************************************************************* // Below are all of the Ldap protocol operation methods //************************************************************************* //************************************************************************* // abandon methods //************************************************************************* /// <summary> /// /// Notifies the server not to send additional results associated with /// this LdapSearchResults object, and discards any results already /// received. /// /// </summary> /// <param name="results"> An object returned from a search. /// /// </param> /// <exception> LdapException A general exception which includes an error /// message and an Ldap error code. /// </exception> public virtual void Abandon(LdapSearchResults results) { Abandon(results, defSearchCons); return ; }