Table of Contents

Method Ascending

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

Ascending(params string[])

Sets one or more key names to index in ascending order.

public IndexKeysBuilder Ascending(params string[] names)

Parameters

names string[]

One or more key names.

Returns

IndexKeysBuilder

The builder (so method calls can be chained).