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

備註

當應用程式未直接建立主體內容並指定內容類型時,就會使用這個屬性。 例如,當應用程式列舉群組成員資格時,這個屬性可用來判斷主體所屬的存放區類型。

適用於