Table of Contents

Method Render

Namespace
MongoDB.Driver.Search
Assembly
MongoDB.Driver.dll

Render(SearchDefinitionRenderContext<TDocument>)

Renders the search definition to a BsonDocument.

[Obsolete("Use Render(RenderArgs<TSource> args) overload instead.")]
public virtual BsonDocument Render(SearchDefinitionRenderContext<TDocument> renderContext)

Parameters

renderContext SearchDefinitionRenderContext<TDocument>

The render context.

Returns

BsonDocument

A BsonDocument.

Render(RenderArgs<TDocument>)

Renders the search definition to a BsonDocument.

public abstract BsonDocument Render(RenderArgs<TDocument> args)

Parameters

args RenderArgs<TDocument>

The render arguments.

Returns

BsonDocument

A BsonDocument.