Principal.ContextType 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取上下文类型枚举值,该值指定与此主体关联的主体上下文的类型。
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 属性相关联。