PrincipalSearcher PrincipalSearcher PrincipalSearcher PrincipalSearcher Constructors

Definition

Overloads

PrincipalSearcher() PrincipalSearcher() PrincipalSearcher()

Initializes a new instance of the PrincipalSearcher class. The QueryFilter property must be set before the Principal searcher object can be used to perform a search.

PrincipalSearcher(Principal) PrincipalSearcher(Principal) PrincipalSearcher(Principal) PrincipalSearcher(Principal)

Initializes a new instance of the PrincipalSearcher class with the specified query filter.

PrincipalSearcher() PrincipalSearcher() PrincipalSearcher()

Initializes a new instance of the PrincipalSearcher class. The QueryFilter property must be set before the Principal searcher object can be used to perform a search.

public:
 PrincipalSearcher();
[System.Security.SecurityCritical]
public PrincipalSearcher ();
Public Sub New ()
See also

PrincipalSearcher(Principal) PrincipalSearcher(Principal) PrincipalSearcher(Principal) PrincipalSearcher(Principal)

Initializes a new instance of the PrincipalSearcher class with the specified query filter.

public:
 PrincipalSearcher(System::DirectoryServices::AccountManagement::Principal ^ queryFilter);
[System.Security.SecurityCritical]
public PrincipalSearcher (System.DirectoryServices.AccountManagement.Principal queryFilter);
new System.DirectoryServices.AccountManagement.PrincipalSearcher : System.DirectoryServices.AccountManagement.Principal -> System.DirectoryServices.AccountManagement.PrincipalSearcher
Public Sub New (queryFilter As Principal)

Parameters

queryFilter
Principal Principal Principal Principal

The Principal object that specifies the filter to use for the search. The QueryFilter property is initialized to this value.

Exceptions

Persisted principal objects can not be used as the QueryFilter.

The queryFilter parameter cannot be null or empty.

See also

Applies to