Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Table of Contents

Method UseConfiguredSerializers

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

UseConfiguredSerializers<TDocument>(SearchDefinition<TDocument>, bool)

Determines whether to use the configured serializers for the specified SearchDefinition<TDocument>. When set to true (the default value), the configured serializers will be used to serialize the values of certain Atlas Search operators, such as "Equals", "In" and "Range". If set to false, then a default conversion will be used.

public static SearchDefinition<TDocument> UseConfiguredSerializers<TDocument>(this SearchDefinition<TDocument> searchDefinition, bool useConfiguredSerializers)

Parameters

searchDefinition SearchDefinition<TDocument>

The search definition instance.

useConfiguredSerializers bool

Whether to use the configured serializers or not.

Returns

SearchDefinition<TDocument>

The same SearchDefinition<TDocument> instance with default serialization enabled.

Type Parameters

TDocument

The type of the document.