Table of Contents

Class JsonArrayFilterDefinition<TItem>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

A JSON string based array filter.

public sealed class JsonArrayFilterDefinition<TItem> : ArrayFilterDefinition<TItem>

Type Parameters

TItem

The type of an item.

Inheritance
JsonArrayFilterDefinition<TItem>
Inherited Members

Constructors

JsonArrayFilterDefinition(string)

Initializes a new instance of the BsonDocumentArrayFilterDefinition<TItem> class.

public JsonArrayFilterDefinition(string json)

Parameters

json string

The JSON string.

Properties

Document

Gets the document.

public BsonDocument Document { get; }

Property Value

BsonDocument

The document.

Json

Gets the JSON string.

public string Json { get; }

Property Value

string

The JSON string.

Methods

Render(IBsonSerializer, IBsonSerializerRegistry, LinqProvider)

Renders the array filter to a BsonDocument.

public override BsonDocument Render(IBsonSerializer itemSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)

Parameters

itemSerializer IBsonSerializer

The item serializer.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

linqProvider LinqProvider

The LINQ provider.

Returns

BsonDocument

A BsonDocument.

Render(IBsonSerializer<TItem>, IBsonSerializerRegistry, LinqProvider)

Renders the array filter to a BsonDocument.

public override BsonDocument Render(IBsonSerializer<TItem> itemSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)

Parameters

itemSerializer IBsonSerializer<TItem>

The item serializer.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

linqProvider LinqProvider

The LINQ provider.

Returns

BsonDocument

A BsonDocument.