SearchRequest SearchRequest SearchRequest SearchRequest Class

定義

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() 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(String, String, SearchScope, String[]) 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(String, XmlDocument, SearchScope, String[]) 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 Aliases Aliases

Aliases 屬性 (Property) 包含可指定取值別名行為之其中一個 DereferenceAlias 值。The Aliases property contains one of the values of DereferenceAlias that specifies the dereference alias behavior.

Attributes Attributes Attributes Attributes

Attributes 屬性 (Property) 包含要求之物件的屬性 (Attribute)。The Attributes property contains the attributes of the requested object.

Controls Controls Controls Controls

Controls 屬性包含 DirectoryControlCollection 物件。The Controls property contains a DirectoryControlCollection object.

(Inherited from DirectoryRequest)
DistinguishedName DistinguishedName DistinguishedName DistinguishedName

DistinguishedName 屬性包含要求之物件的辨別名稱。The DistinguishedName property contains the distinguished name of the requested object.

Filter Filter Filter Filter

Filter 屬性,包含搜尋篩選條件。The Filter property contains the search filter.

RequestId RequestId RequestId RequestId

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

(Inherited from DirectoryRequest)
Scope Scope Scope Scope

Scope 屬性包含其中一個 SearchScope 值,可指定搜尋範圍。The Scope property contains one of the values of SearchScope that specifies the scope of the search.

SizeLimit SizeLimit SizeLimit SizeLimit

SizeLimit 屬性包含搜尋要求中傳回之物件的最大數目。The SizeLimit property contains the maximum number of objects returned in the search request.

TimeLimit TimeLimit TimeLimit 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 TypesOnly TypesOnly

TypesOnly 屬性 (Property),指定搜尋是否僅傳回屬性 (Attribute) 名稱,而非屬性 (Attribute) 值。The TypesOnly property specifies whether the search returns only the attribute names and not the attribute values.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
ToXmlNode(XmlDocument) ToXmlNode(XmlDocument) ToXmlNode(XmlDocument) ToXmlNode(XmlDocument)

ToXmlNode(XmlDocument) 方法會從指定的 XmlDocument 物件建立 XML 節點。The ToXmlNode(XmlDocument) method creates an XML node from the specified XmlDocument object.

適用於