Export (0) Print
Expand All

DirectorySearcher.Sort Property

Gets the property on which the results are sorted.

[Visual Basic]
Public Property Sort As SortOption
[C#]
public SortOption Sort {get; set;}
[C++]
public: __property SortOption* get_Sort();
public: __property void set_Sort(SortOption*);
[JScript]
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.

Exceptions

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

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

Show:
© 2014 Microsoft