Table of Contents

Method Descending

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Descending(FieldDefinition<TDocument>)

Creates a descending index key definition.

public IndexKeysDefinition<TDocument> Descending(FieldDefinition<TDocument> field)

Parameters

field FieldDefinition<TDocument>

The field.

Returns

IndexKeysDefinition<TDocument>

A descending index key definition.

Descending(Expression<Func<TDocument, object>>)

Creates a descending index key definition.

public IndexKeysDefinition<TDocument> Descending(Expression<Func<TDocument, object>> field)

Parameters

field Expression<Func<TDocument, object>>

The field.

Returns

IndexKeysDefinition<TDocument>

A descending index key definition.