SearchRequest Constructor (String, String, SearchScope, String[])

 

The SearchRequest(String, String, SearchScope, String[]) constructor creates an instance of the SearchRequest class using the specified name, search filter, scope, and attributes.

Namespace:   System.DirectoryServices.Protocols
Assembly:  System.DirectoryServices.Protocols (in System.DirectoryServices.Protocols.dll)

public SearchRequest(
	string distinguishedName,
	string ldapFilter,
	SearchScope searchScope,
	params string[] attributeList
)

Parameters

distinguishedName
Type: System.String

The distinguished name of the object at which to start the search.

ldapFilter
Type: System.String

An LDAP search filter.

searchScope
Type: System.DirectoryServices.Protocols.SearchScope

One of the values of SearchScope that specifies the search scope.

attributeList
Type: System.String[]

An array that contains the requested attributes in the result set.

.NET Framework
Available since 2.0
Return to top
Show: