次の方法で共有


DirectorySearcher.PropertiesToLoad プロパティ

検索中に取得するプロパティのセットを取得します。

Public ReadOnly Property PropertiesToLoad As StringCollection
[C#]
public StringCollection PropertiesToLoad {get;}
[C++]
public: __property StringCollection* get_PropertiesToLoad();
[JScript]
public function get PropertiesToLoad() : StringCollection;

プロパティ値

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

解説

特定のプロパティを取得するには、検索を開始する前にこのコレクションに追加します。たとえば、 searcher.PropertiesToLoad.Add("phone");. プロパティ "ADsPath" は、必ず検索時に自動的に読み込まれます。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

DirectorySearcher クラス | DirectorySearcher メンバ | System.DirectoryServices 名前空間 | Name | Path | StringCollection