SearchRequest 类

定义

SearchRequest 类启动搜索操作。The SearchRequest class initiates a search operation.

public ref class SearchRequest : System::DirectoryServices::Protocols::DirectoryRequest
public class SearchRequest : System.DirectoryServices.Protocols.DirectoryRequest
type SearchRequest = class
    inherit DirectoryRequest
Public Class SearchRequest
Inherits DirectoryRequest
继承

构造函数

SearchRequest()

SearchRequest() 构造函数创建 SearchRequest 类的实例。The SearchRequest() constructor creates an instance of the SearchRequest class. 此构造函数创建一个空请求。This constructor creates an empty request.

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

SearchRequest(String, String, SearchScope, String[]) 构造函数使用指定的名称、搜索筛选器、范围和特性创建 SearchRequest 类的实例。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[])

SearchRequest(String, XmlDocument, SearchScope, String[]) 构造函数使用指定的名称、搜索筛选器、范围和特性创建 SearchRequest 类的实例。The SearchRequest(String, XmlDocument, SearchScope, String[]) constructor creates an instance of the SearchRequest class using the specified name, search filter, scope, and attributes.

属性

Aliases

Aliases 属性包含 DereferenceAlias 的一个值,该值指定取消引用别名行为。The Aliases property contains one of the values of DereferenceAlias that specifies the dereference alias behavior.

Attributes

Attributes 属性包含所请求对象的特性。The Attributes property contains the attributes of the requested object.

Controls

Controls 属性包含 DirectoryControlCollection 对象。The Controls property contains a DirectoryControlCollection object.

(继承自 DirectoryRequest)
DistinguishedName

DistinguishedName 属性包含所请求对象的识别名。The DistinguishedName property contains the distinguished name of the requested object.

Filter

Filter 属性包含搜索筛选器。The Filter property contains the search filter.

RequestId

RequestId 属性包含请求中指定的 requestIDThe RequestId property contains the requestID specified in the request.

(继承自 DirectoryRequest)
Scope

Scope 属性包含 SearchScope 的一个值,该值指定搜索范围。The Scope property contains one of the values of SearchScope that specifies the scope of the search.

SizeLimit

SizeLimit 属性包含搜索请求中返回的最多对象数。The SizeLimit property contains the maximum number of objects returned in the search request.

TimeLimit

TimeLimit 属性包含一个 TimeSpan 对象,该对象指定在服务器处理搜索请求时所允许的时间范围。The TimeLimit property contains a TimeSpan object that specifies the time span allowed, if the server processes the search request.

TypesOnly

TypesOnly 属性指定搜索是否只返回特性名称,而不返回特性值。The TypesOnly property specifies whether the search returns only the attribute names and not the attribute values.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)
ToXmlNode(XmlDocument)

ToXmlNode(XmlDocument) 方法根据指定的 XmlDocument 对象创建 XML 节点。The ToXmlNode(XmlDocument) method creates an XML node from the specified XmlDocument object.

适用于