Table of Contents

Class SearchDefinitionRenderContext<TDocument>

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

Encapsulates classes needed for rendering Search definitions.

public sealed class SearchDefinitionRenderContext<TDocument>

Type Parameters

TDocument

The type of the document.

Inheritance
SearchDefinitionRenderContext<TDocument>
Inherited Members

Constructors

SearchDefinitionRenderContext(IBsonSerializer<TDocument>, IBsonSerializerRegistry, string)

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

public SearchDefinitionRenderContext(IBsonSerializer<TDocument> documentSerializer, IBsonSerializerRegistry serializerRegistry, string pathPrefix = null)

Parameters

documentSerializer IBsonSerializer<TDocument>

The document serializer.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

pathPrefix string

The path prefix.

Properties

DocumentSerializer

Gets the document serializer.

public IBsonSerializer<TDocument> DocumentSerializer { get; }

Property Value

IBsonSerializer<TDocument>

PathPrefix

Gets the path prefix.

public string PathPrefix { get; }

Property Value

string

SerializerRegistry

Gets the serializer registry.

public IBsonSerializerRegistry SerializerRegistry { get; }

Property Value

IBsonSerializerRegistry