DirectorySearcher.Sort Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

[DSDescriptionAttribute("DSSort")]
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
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
ArgumentNullException

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

.NET Framework
Available since 1.1
Return to top
Show: