SortDefinitionBuilder<TDocument>.Ascending Method (FieldDefinition<TDocument>) |
Creates an ascending sort.
Namespace: MongoDB.DriverAssembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.0.1
Syntaxpublic SortDefinition<TDocument> Ascending(
FieldDefinition<TDocument> field
)
Public Function Ascending (
field As FieldDefinition(Of TDocument)
) As SortDefinition(Of TDocument)
member Ascending :
field : FieldDefinition<'TDocument> -> SortDefinition<'TDocument>
Parameters
- field
- Type: MongoDB.Driver.FieldDefinition<TDocument>
The field.
Return Value
Type:
SortDefinition<TDocument>An ascending sort.
See Also