Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DirectorySearcher.Sort Property


Gets or sets a value indicating the property on which the results are sorted.

Namespace:   System.DirectoryServices
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

public SortOption Sort { get; set; }

Property Value

Type: System.DirectoryServices.SortOption

A SortOption object that specifies the property and direction that the search results should be sorted on.

Exception Condition

The property value is null (Nothing in Visual Basic).

.NET Framework
Available since 1.1
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft