Прочетете на английски Редактиране

Споделяне чрез


SearchRequest Constructors

Definition

The SearchRequest() constructor creates an instance of the SearchRequest class.

Overloads

SearchRequest()

The SearchRequest() constructor creates an instance of the SearchRequest class. This constructor creates an empty request.

SearchRequest(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.

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

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

SearchRequest()

Source:
DirectoryRequest.cs
Source:
DirectoryRequest.cs
Source:
DirectoryRequest.cs

The SearchRequest() constructor creates an instance of the SearchRequest class. This constructor creates an empty request.

C#
public SearchRequest();

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

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

Source:
DirectoryRequest.cs
Source:
DirectoryRequest.cs
Source:
DirectoryRequest.cs

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

C#
public SearchRequest(string distinguishedName, string ldapFilter, System.DirectoryServices.Protocols.SearchScope searchScope, params string[] attributeList);

Parameters

distinguishedName
String

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

ldapFilter
String

An LDAP search filter.

searchScope
SearchScope

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

attributeList
String[]

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

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

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

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

C#
public SearchRequest(string distinguishedName, System.Xml.XmlDocument filter, System.DirectoryServices.Protocols.SearchScope searchScope, params string[] attributeList);

Parameters

distinguishedName
String

The distinguished name of the object for which to search.

filter
XmlDocument

A DSML v2 search filter.

searchScope
SearchScope

A SearchScope value that specifies the search scope. The default value is SearchScope.

attributeList
String[]

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

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1