[]
Adds an ascending SortExpression specified by the expression text to the current collection.
public SortExpression Add(string expression)
| Type | Name | Description |
|---|---|---|
| string | expression | The sort expression text. |
| Type | Description |
|---|---|
| SortExpression | The SortExpression object that was created and added to the current collection. |
Adds a SortExpression specified by the expression text and sort direction to the current collection.
public SortExpression Add(string expression, SortDirectionEnum sortDirection)
| Type | Name | Description |
|---|---|---|
| string | expression | The sort expression text. |
| SortDirectionEnum | sortDirection | The sort direction. |
| Type | Description |
|---|---|
| SortExpression | The SortExpression object that was created and added to the current collection. |
Adds a SortExpression object to the current collection.
public int Add(SortExpression expression)
| Type | Name | Description |
|---|---|---|
| SortExpression | expression | The SortExpression object to add. |
| Type | Description |
|---|---|
| int | The index of the added object in the current collection. |