Edit

Share via


SortRequestControl Constructors

Definition

Creates a new instance of the SortRequestControl class.

Overloads

SortRequestControl(SortKey[])

The SortRequestControl(SortKey[]) constructor creates and initializes a new instance of the SortRequestControl class using the specified sort keys.

SortRequestControl(String, Boolean)

The SortRequestControl(String, Boolean) constructor creates a new instance of the SortRequestControl class using the specified attribute name and sort order.

SortRequestControl(String, String, Boolean)

The SortRequestControl(String, String, Boolean) constructor creates a new instance of the SortRequestControl class using the specified attribute name, matching rule, and sort order.

SortRequestControl(SortKey[])

Source:
DirectoryControl.cs
Source:
DirectoryControl.cs

The SortRequestControl(SortKey[]) constructor creates and initializes a new instance of the SortRequestControl class using the specified sort keys.

public:
 SortRequestControl(... cli::array <System::DirectoryServices::Protocols::SortKey ^> ^ sortKeys);
public SortRequestControl (params System.DirectoryServices.Protocols.SortKey[] sortKeys);
new System.DirectoryServices.Protocols.SortRequestControl : System.DirectoryServices.Protocols.SortKey[] -> System.DirectoryServices.Protocols.SortRequestControl
Public Sub New (ParamArray sortKeys As SortKey())

Parameters

sortKeys
SortKey[]

An array of SortKey objects used by the server to sort the search results before returning them to the client.

Applies to

SortRequestControl(String, Boolean)

Source:
DirectoryControl.cs
Source:
DirectoryControl.cs

The SortRequestControl(String, Boolean) constructor creates a new instance of the SortRequestControl class using the specified attribute name and sort order.

public:
 SortRequestControl(System::String ^ attributeName, bool reverseOrder);
public SortRequestControl (string attributeName, bool reverseOrder);
new System.DirectoryServices.Protocols.SortRequestControl : string * bool -> System.DirectoryServices.Protocols.SortRequestControl
Public Sub New (attributeName As String, reverseOrder As Boolean)

Parameters

attributeName
String

The name of the attribute on which the query is based.

reverseOrder
Boolean

true if results should be returned in reverse order or false otherwise.

Applies to

SortRequestControl(String, String, Boolean)

Source:
DirectoryControl.cs
Source:
DirectoryControl.cs

The SortRequestControl(String, String, Boolean) constructor creates a new instance of the SortRequestControl class using the specified attribute name, matching rule, and sort order.

public:
 SortRequestControl(System::String ^ attributeName, System::String ^ matchingRule, bool reverseOrder);
public SortRequestControl (string attributeName, string matchingRule, bool reverseOrder);
new System.DirectoryServices.Protocols.SortRequestControl : string * string * bool -> System.DirectoryServices.Protocols.SortRequestControl
Public Sub New (attributeName As String, matchingRule As String, reverseOrder As Boolean)

Parameters

attributeName
String

The name of the attribute on which the query is based.

matchingRule
String

Specifies the object identifier (OID) of the matching rule for the sort.

reverseOrder
Boolean

true if the sort is ordered from lowest to highest or false if the sort is ordered from highest to lowest.

Applies to