PrincipalContext.ContextType 属性
定义
获取上下文类型,该上下文类型指定主体上下文的存储区的类型。Gets the context type that specifies the type of store for the principal context.
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 枚举值,指定要连接到的目标的类型。A ContextType enumeration value specifying the type of target to connect to.
注解
当应用程序不直接创建主体上下文和指定上下文类型时,将使用此属性。This property is used when the application does not directly create the principal context and specify the context type. 例如,当应用程序枚举组成员身份时,此属性可用于确定主体所属的存储区的类型。For example, when the application enumerates group membership, this property can be used to determine the type of store to which the principal belongs.