Table of Contents

Class BsonDocumentSearchDefinition<TDocument>

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

A search definition based on a BSON document.

public sealed class BsonDocumentSearchDefinition<TDocument> : SearchDefinition<TDocument>

Type Parameters

TDocument

The type of the document.

Inheritance
SearchDefinition<TDocument>
BsonDocumentSearchDefinition<TDocument>
Inherited Members

Constructors

BsonDocumentSearchDefinition(BsonDocument)

Initializes a new instance of the BsonDocumentSearchDefinition<TDocument> class.

public BsonDocumentSearchDefinition(BsonDocument document)

Parameters

document BsonDocument

The BSON document specifying the search definition.

Properties

Document

Gets the BSON document.

public BsonDocument Document { get; }

Property Value

BsonDocument

Methods

Render(SearchDefinitionRenderContext<TDocument>)

Renders the search definition to a BsonDocument.

public override BsonDocument Render(SearchDefinitionRenderContext<TDocument> renderContext)

Parameters

renderContext SearchDefinitionRenderContext<TDocument>

The render context.

Returns

BsonDocument

A BsonDocument.