This documentation is archived and is not being maintained.

DirectorySearcher.PropertiesToLoad Property

Gets the set of properties retrieved during the search.

[Visual Basic]
Public ReadOnly Property PropertiesToLoad As StringCollection
public StringCollection PropertiesToLoad {get;}
public: __property StringCollection* get_PropertiesToLoad();
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.


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.


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