Find one directory entry based on search filter.

Namespace:  EPiServer.Security
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public abstract DirectoryData FindOne(
	string filter,
	SearchScope scope
)

Parameters

filter
Type: System..::.String
The filter, which is a LDAP query.
scope
Type: System.DirectoryServices..::.SearchScope
The scope at which to search.

Return Value

A DirectoryData instance with the entry, or null if the search did not find an entry.

See Also