Click or drag to resize

SortDefinition<TDocument>.Render Method (IBsonSerializer<TDocument>, IBsonSerializerRegistry)

Renders the sort to a BsonDocument.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.17.0+b316340e6cc3a8bfc8638dc31b54fbbfe41bfcb2
Syntax
public virtual BsonDocument Render(
	IBsonSerializer<TDocument> documentSerializer,
	IBsonSerializerRegistry serializerRegistry
)

Parameters

documentSerializer
Type: MongoDB.Bson.Serialization.IBsonSerializer<TDocument>
The document serializer.
serializerRegistry
Type: MongoDB.Bson.Serialization.IBsonSerializerRegistry
The serializer registry.

Return Value

Type: BsonDocument
A BsonDocument.
See Also