Export (0) Print
Expand All

DirectorySearcher.Sort Property

Gets the property on which the results are sorted.

[Visual Basic]
Public Property Sort As SortOption
public SortOption Sort {get; set;}
public: __property SortOption* get_Sort();
public: __property void set_Sort(SortOption*);
public function get Sort() : SortOption;
public function set Sort(SortOption);

Property Value

A SortOption that specifies a SortDirection value and a DirectoryEntry.Name on which to sort.


Exception Type Condition
ArgumentNullException The value is a null reference (Nothing in Visual Basic).


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 | SortDirection | SortOption

© 2014 Microsoft