PrincipalSearcher.FindAll PrincipalSearcher.FindAll PrincipalSearcher.FindAll PrincipalSearcher.FindAll Method


Returns a principal search result that contains a collection of all the principal objects that match the principal specified in the query filter property.

 System::DirectoryServices::AccountManagement::PrincipalSearchResult<System::DirectoryServices::AccountManagement::Principal ^> ^ FindAll();
public System.DirectoryServices.AccountManagement.PrincipalSearchResult<System.DirectoryServices.AccountManagement.Principal> FindAll ();
member this.FindAll : unit -> System.DirectoryServices.AccountManagement.PrincipalSearchResult<System.DirectoryServices.AccountManagement.Principal>
Public Function FindAll () As PrincipalSearchResult(Of Principal)


A PrincipalSearchResult<T> object that matches the query filter or an empty collection if no results are found.


The QueryFilter contains referential properties. For more information, see the Query by Example overview topic.

The QueryFilter is a persisted principal.

A QueryFilter must first be assigned to the principal searcher before the query can be performed.


The principal objects returned in the principal search result match the type of object contained in the QueryFilter property. The search is conducted in the context specified in the Context property. For more information, see the Query by Example overview topic.

Applies to

See also