[]
        
(Showing Draft Content)

C1.DataCollection.BindingList.C1BindingListDataCollection.SortAsync

SortAsync Method

SortAsync(params SortDescription[])

Sorts the collection according to the specified sortDescriptions.

Declaration
public Task SortAsync(params SortDescription[] sortDescriptions)
Public Function SortAsync(ParamArray sortDescriptions As SortDescription()) As Task
Parameters
Type Name Description
SortDescription[] sortDescriptions

The sort descriptions that determine how the data will be sort.

Returns
Type Description
Task

SortAsync(SortDescription[], CancellationToken)

Sorts the collection according to the specified sortDescriptions.

Declaration
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "The constructor alerts about possible unreferenced code.")]
[UnconditionalSuppressMessage("Trimming", "IL2072", Justification = "The constructor alerts about possible unreferenced code.")]
public Task SortAsync(SortDescription[] sortDescriptions, CancellationToken cancellationToken = default)
<UnconditionalSuppressMessage("Trimming", "IL2026", Justification:="The constructor alerts about possible unreferenced code.")>
<UnconditionalSuppressMessage("Trimming", "IL2072", Justification:="The constructor alerts about possible unreferenced code.")>
Public Function SortAsync(sortDescriptions As SortDescription(), Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
Type Name Description
SortDescription[] sortDescriptions

The sort descriptions that determine how the data will be sort.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task
Implements