PrincipalSearcher Constructors

Definition

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.

Overloads

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)

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

PrincipalSearcher()

Source:
PrincipalSearcher.cs
Source:
PrincipalSearcher.cs
Source:
PrincipalSearcher.cs

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();
public PrincipalSearcher ();
[System.Security.SecurityCritical]
public PrincipalSearcher ();
Public Sub New ()
Attributes

See also

Applies to

PrincipalSearcher(Principal)

Source:
PrincipalSearcher.cs
Source:
PrincipalSearcher.cs
Source:
PrincipalSearcher.cs

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

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

Parameters

queryFilter
Principal

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

Attributes

Exceptions

Persisted principal objects can not be used as the QueryFilter.

The queryFilter parameter cannot be null or empty.

See also

Applies to