Class BsonDocumentSearchDefinition<TDocument>
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
BsonDocumentThe BSON document specifying the search definition.
Properties
Document
Gets the BSON document.
public BsonDocument Document { get; }
Property Value
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.