PrincipalContext.ContextType 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定主要上下文儲存類型的上下文類型。
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 列舉值,指定要連接的目標類型。
備註
當應用程式未直接建立主要上下文並指定上下文類型時,使用此特性。 例如,當應用程式列舉群組成員時,這個屬性可以用來判斷主體所屬的儲存類型。