Principal.ContextType 属性
定义
获取上下文类型枚举值,该值指定与此主体关联的主体上下文的类型。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; }
[get: System.Security.SecurityCritical]
public System.DirectoryServices.AccountManagement.ContextType ContextType { 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 枚举值,该值指定上下文类型。A ContextType enumeration value that specifies the context type.
- 属性
注解
上下文类型在构造函数中的主体上下文对象上设置 PrincipalContext 。The context type is set on the principal context object in the PrincipalContext constructor. 此类中存储的值与属性相关联 ContextType 。The value stored in this class is associated with the ContextType property.