Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The default page size of 256 KB is used when the PrincipalSearcher class performs a query for domain principals. The application may override the default value by setting the PageSize property in the underlying DirectorySearcher object that is returned from the GetUnderlyingSearcher method.
Initializes a new instance of the PrincipalSearcher class with the specified query filter.
Gets that principal context that is used to perform the query. The context specifies the server or domain against which search operations are performed.
Gets or sets the query filter that is used to locate matching principals.
Disposes the current instance of the PrincipalSearcher object.
Determines whether the specified object is equal to the current object.(Inherited from Object)
Returns a principal search result that contains a collection of all the principal objects that match the principal specified in the query filter property.
Returns a principal search result that contains the first principal object found that matches the principal specified in the QueryFilter property.
Serves as the default hash function.(Inherited from Object)
Gets the Type of the current instance.(Inherited from Object)
Returns the underlying search object that is used by the Account Management API to perform the search.
Returns the type of the object returned from the GetUnderlyingSearcher() method.
Creates a shallow copy of the current Object.(Inherited from Object)
Returns a string that represents the current object.(Inherited from Object)