Class JsonSortDefinition

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

A JSON string based sort.

public sealed class JsonSortDefinition<TDocument> : SortDefinition<TDocument>

Type Parameters

TDocument

The type of the document.

Inheritance

JsonSortDefinition

Inherited Members

Extension Methods

Constructors

JsonSortDefinition(string)

Initializes a new instance of the JsonSortDefinition class.

Properties

Json

Gets the json.

Methods

Render(RenderArgs)

Renders the sort to a BsonDocument.