PrincipalSearcher Constructors
Definition
Important
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.
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
- 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
- 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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應