C# Class Novell.Directory.Ldap.LdapSearchResults

An LdapSearchResults object is returned from a synchronous search operation. It provides access to all results received during the operation (entries and exceptions).
显示文件 Open project: EventStore/csharp-ldap Class Usage Examples

Private Properties

Property Type Description
Abandon void
LdapSearchResults System
LdapSearchResults System
resetVectors void

Public Methods

Method Description
hasMore ( ) : bool

Reports if there are more search results.

next ( ) : LdapEntry

Returns the next result as an LdapEntry. If automatic referral following is disabled or if a referral was not followed, next() will throw an LdapReferralException when the referral is received.

Private Methods

Method Description
Abandon ( ) : void

Cancels the search request and clears the message and enumeration.

LdapSearchResults ( ) : System
LdapSearchResults ( LdapConnection conn, LdapSearchQueue queue, LdapSearchConstraints cons ) : System

Constructs a queue object for search results.

resetVectors ( ) : void

Method Details

hasMore() public method

Reports if there are more search results.
public hasMore ( ) : bool
return bool

next() public method

Returns the next result as an LdapEntry. If automatic referral following is disabled or if a referral was not followed, next() will throw an LdapReferralException when the referral is received.
LdapException A general exception which includes an error /// message and an Ldap error code. /// LdapReferralException A referral was received and not /// followed. ///
public next ( ) : LdapEntry
return LdapEntry