語言

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 列舉值,指定要連接的目標類型。

備註

當應用程式未直接建立主要上下文並指定上下文類型時,使用此特性。 例如,當應用程式列舉群組成員時,這個屬性可以用來判斷主體所屬的儲存類型。

適用於