Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DirectorySearcher.PropertiesToLoad Property

Gets the set of properties retrieved during the search.

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

Property Value

The set of properties retrieved during the search. The default is an empty StringCollection, which retrieves all properties.

Remarks

To retrieve specific properties, add them to this collection before you begin the search. For example, searcher.PropertiesToLoad.Add("phone");. Property "ADsPath" is always automatically loaded during the search.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

DirectorySearcher Class | DirectorySearcher Members | System.DirectoryServices Namespace | Name | Path | StringCollection

Show:
© 2015 Microsoft