DirectorySearcher.PropertiesToLoad プロパティ

定義

検索中に取得するプロパティの一覧を示す値を取得または設定します。

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 オブジェクト。

既定値は空の StringCollection です。これは、すべてのプロパティを取得することを示します。

属性

注釈

特定のプロパティを取得するには、検索を開始する前に、これらのプロパティをこのコレクションに追加します。 たとえば、 searcher.PropertiesToLoad.Add("phone"); 検索で取得するプロパティの一覧に phone プロパティを追加します。

プロパティ "ADsPath" は、検索中に常に取得されます。 Windows 2000 以前のオペレーティング システムでは、ntSecurityDescriptor プロパティを取得するには、検索を実行するアカウントが Administrators グループのメンバーである必要があります。 そうでない場合、ntSecurityDescriptor に対して返されるプロパティ値は null. 詳細については、 NT-Security-Descriptor の記事を参照してください。

適用対象

こちらもご覧ください