Edit

Share via


Principal.ContextType Property

Definition

Gets the context type enumeration value that specifies the type of principal context associated with this principal.

public:
 property System::DirectoryServices::AccountManagement::ContextType ContextType { System::DirectoryServices::AccountManagement::ContextType get(); };
public System.DirectoryServices.AccountManagement.ContextType ContextType { get; }
public System.DirectoryServices.AccountManagement.ContextType ContextType { [System.Security.SecurityCritical] get; }
member this.ContextType : System.DirectoryServices.AccountManagement.ContextType
[<get: System.Security.SecurityCritical>]
member this.ContextType : System.DirectoryServices.AccountManagement.ContextType
Public ReadOnly Property ContextType As ContextType

Property Value

A ContextType enumeration value that specifies the context type.

Attributes

Remarks

The context type is set on the principal context object in the PrincipalContext constructor. The value stored in this class is associated with the ContextType property.

Applies to