Click or drag to resize
IndexKeysBuilder<TDocument>.Ascending Method
Sets one or more key names to index in ascending order.

Namespace: MongoDB.Driver.Builders
Assembly: MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.3.0
Syntax
public IndexKeysBuilder<TDocument> Ascending(
	params Expression<Func<TDocument, Object>>[] memberExpressions
)

Parameters

memberExpressions
Type:System.Linq.Expressions.Expression<Func<TDocument, Object>>[]
One or more key names.

Return Value

Type: IndexKeysBuilder<TDocument>
The builder (so method calls can be chained).
See Also