Class LdapSearchResults
An LdapSearchResults object is returned from a synchronous search operation. It provides access to all results received during the operation (entries and exceptions).
Inherited Members
Namespace: Swan.Ldap
Syntax
public sealed class LdapSearchResults
Properties
Count
Returns a count of the items in the search result.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| Int32 | The count. |
Methods
HasMore()
Reports if there are more search results.
Declaration
public bool HasMore()
Returns
| Type | Description |
|---|---|
| Boolean | true if there are more search results. |
Next()
Returns the next result as an LdapEntry.
Declaration
public LdapEntry Next()
Returns
| Type | Description |
|---|---|
| LdapEntry | The next search result as an LdapEntry. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | Next - No more results. |