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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈