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