Table of Contents

Method Render

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

Render(SearchDefinitionRenderContext<TDocument>)

Renders the span clause to a BsonDocument.

[Obsolete("Use Render(RenderArgs<TDocument> 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 span clause to a BsonDocument.

public virtual BsonDocument Render(RenderArgs<TDocument> args)

Parameters

args RenderArgs<TDocument>

The render arguments.

Returns

BsonDocument

A BsonDocument.