Table of Contents

Class BsonDocumentArrayFilterDefinition<TItem>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

A BsonDocument based array filter.

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

Type Parameters

TItem

The type of an item.

Inheritance
BsonDocumentArrayFilterDefinition<TItem>
Inherited Members

Constructors

BsonDocumentArrayFilterDefinition(BsonDocument)

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

public BsonDocumentArrayFilterDefinition(BsonDocument document)

Parameters

document BsonDocument

The document.

Properties

Document

Gets the document.

public BsonDocument Document { get; }

Property Value

BsonDocument

The document.

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.