Editar

Compartir a través de


PrincipalSearcher.Context Property

Definition

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