DirectorySearcher.Sort Property

Definition

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

public:
 property System::DirectoryServices::SortOption ^ Sort { System::DirectoryServices::SortOption ^ get(); void set(System::DirectoryServices::SortOption ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))]
[System.DirectoryServices.DSDescription("DSSort")]
public System.DirectoryServices.SortOption Sort { get; set; }
member this.Sort : System.DirectoryServices.SortOption with get, set
Public Property Sort As SortOption

Property Value

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

Attributes

Exceptions

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

Applies to

See also