Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft