DirectorySearcher.PropertiesToLoad 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得值,指出搜尋期間要擷取的屬性清單。
public:
property System::Collections::Specialized::StringCollection ^ PropertiesToLoad { System::Collections::Specialized::StringCollection ^ get(); };
public System.Collections.Specialized.StringCollection PropertiesToLoad { get; }
[System.DirectoryServices.DSDescription("DSPropertiesToLoad")]
public System.Collections.Specialized.StringCollection PropertiesToLoad { get; }
member this.PropertiesToLoad : System.Collections.Specialized.StringCollection
[<System.DirectoryServices.DSDescription("DSPropertiesToLoad")>]
member this.PropertiesToLoad : System.Collections.Specialized.StringCollection
Public ReadOnly Property PropertiesToLoad As StringCollection
屬性值
一個 StringCollection 包含搜尋過程中要檢索屬性集合的物件。
預設為空 StringCollection,可取得所有屬性。
- 屬性
備註
若要取得特定屬性,請在開始搜尋前將它們加入此集合。 例如, searcher.PropertiesToLoad.Add("phone"); 會將電話屬性加入搜尋時要檢索的屬性清單。
「ADsPath」這個屬性在搜尋過程中總是會被檢索。 在 Windows 2000 及更早的作業系統中,執行搜尋的帳號必須是管理員群組的成員,才能取得 ntSecurityDescriptor 屬性。 若非如此,ntSecurityDescriptor 回傳的屬性值將為 null。 欲了解更多資訊,請參閱 NT-Security-Descriptor 條目。