DirectorySearcher::Sort Property
.NET Framework (current version)
Gets or sets a value indicating the property on which the results are sorted.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
public: [DSDescriptionAttribute("DSSort")] [TypeConverterAttribute((ExpandableObjectConverter^::typeid))] property SortOption^ Sort { SortOption^ get(); void set(SortOption^ value); }
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
Available since 1.1
Show: