PrincipalContext.ContextType 属性

定义

获取上下文类型,该上下文类型指定主体上下文的存储区的类型。

public:
 property System::DirectoryServices::AccountManagement::ContextType ContextType { System::DirectoryServices::AccountManagement::ContextType get(); };
public System.DirectoryServices.AccountManagement.ContextType ContextType { get; }
member this.ContextType : System.DirectoryServices.AccountManagement.ContextType
Public ReadOnly Property ContextType As ContextType

属性值

一个 ContextType 枚举值,指定要连接到的目标的类型。

注解

当应用程序不直接创建主体上下文并指定上下文类型时,将使用此属性。 例如,当应用程序枚举组成员身份时,此属性可用于确定主体所属的存储类型。

适用于