Principal.ContextType 属性

定义

获取上下文类型枚举值,该值指定与此主体关联的主体上下文的类型。

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

属性值

一个 ContextType 枚举值,该值指定上下文类型。

属性

注解

上下文类型在构造函数的主体上下文对象 PrincipalContext 上设置。 此类中存储的值与 ContextType 属性相关联。

适用于