PrincipalSearcher.Context Property
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.
Gets that principal context that is used to perform the query. The context specifies the server or domain against which search operations are performed.
public:
property System::DirectoryServices::AccountManagement::PrincipalContext ^ Context { System::DirectoryServices::AccountManagement::PrincipalContext ^ get(); };
public System.DirectoryServices.AccountManagement.PrincipalContext Context { get; }
public System.DirectoryServices.AccountManagement.PrincipalContext Context { [System.Security.SecurityCritical] [System.Security.SecurityTreatAsSafe] get; }
member this.Context : System.DirectoryServices.AccountManagement.PrincipalContext
[<get: System.Security.SecurityCritical>]
[<get: System.Security.SecurityTreatAsSafe>]
member this.Context : System.DirectoryServices.AccountManagement.PrincipalContext
Public ReadOnly Property Context As PrincipalContext
Property Value
The PrincipalContext object that specifies the server or domain against which operations are performed.
- Attributes
Remarks
The PrincipalContext object contained in this property is obtained from the context property of the principal object set in the QueryFilter property. Queries are performed using the credentials specified in the principal context object and the container specified in the Container property. For Domain and ApplicationDirectory context types, the container is the Distinguished Name (DN) of a container object.
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應