PrincipalSearcher 類別

定義

封裝對基礎主體存放區執行查詢時使用的方法和搜尋模式。Encapsulates the methods and search patterns used to execute a query against the underlying principal store.

public ref class PrincipalSearcher : IDisposable
public class PrincipalSearcher : IDisposable
type PrincipalSearcher = class
    interface IDisposable
Public Class PrincipalSearcher
Implements IDisposable
繼承
PrincipalSearcher
實作

備註

PrincipalSearcher類別執行網域主體的查詢時, 會使用 256 KB 的預設頁面大小。The default page size of 256 KB is used when the PrincipalSearcher class performs a query for domain principals. 應用程式可以藉由在PageSize GetUnderlyingSearcher方法傳回的基礎DirectorySearcher物件中設定屬性, 來覆寫預設值。The application may override the default value by setting the PageSize property in the underlying DirectorySearcher object that is returned from the GetUnderlyingSearcher method.

建構函式

PrincipalSearcher()

初始化 PrincipalSearcher 類別的新執行個體。Initializes a new instance of the PrincipalSearcher class. QueryFilter 屬性必須在 Principal 搜尋器物件可用來執行搜尋前設定。The QueryFilter property must be set before the Principal searcher object can be used to perform a search.

PrincipalSearcher(Principal)

使用指定的查詢篩選條件,初始化 PrincipalSearcher 類別的新執行個體。Initializes a new instance of the PrincipalSearcher class with the specified query filter.

屬性

Context

取得用來執行查詢的主體內容。Gets that principal context that is used to perform the query. 這個內容會指定要執行搜尋作業的伺服器或網域。The context specifies the server or domain against which search operations are performed.

QueryFilter

取得或設定用於找出相符主體的查詢篩選條件。Gets or sets the query filter that is used to locate matching principals.

方法

Dispose()

處置 PrincipalSearcher 物件目前的執行個體。Disposes the current instance of the PrincipalSearcher object.

Equals(Object)

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

(繼承來源 Object)
FindAll()

傳回主體搜尋結果,其中包含符合查詢篩選條件屬性中指定之主體的所有主體物件的集合。Returns a principal search result that contains a collection of all the principal objects that match the principal specified in the query filter property.

FindOne()

傳回主體搜尋結果,其中包含第一個找到符合 QueryFilter 屬性中指定之主體的主體物件。Returns a principal search result that contains the first principal object found that matches the principal specified in the QueryFilter property.

GetHashCode()

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

(繼承來源 Object)
GetType()

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

(繼承來源 Object)
GetUnderlyingSearcher()

傳回帳戶管理 API 執行搜尋時所使用的基礎搜尋物件。Returns the underlying search object that is used by the Account Management API to perform the search.

GetUnderlyingSearcherType()

傳回 GetUnderlyingSearcher() 方法傳回之物件的型別。Returns the type of the object returned from the GetUnderlyingSearcher() method.

MemberwiseClone()

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

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於

另請參閱