Table of Contents

Class ArrayFilterDefinition<TItem>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Base class for array filters.

public abstract class ArrayFilterDefinition<TItem> : ArrayFilterDefinition

Type Parameters

TItem

The type of an item.

Inheritance
ArrayFilterDefinition<TItem>
Derived
Inherited Members

Properties

ItemType

Gets the type of an item.

public override Type ItemType { get; }

Property Value

Type

The type of an item.

Methods

Render(IBsonSerializer<TItem>, IBsonSerializerRegistry, LinqProvider)

Renders the array filter to a BsonDocument.

public abstract 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.

Operators

implicit operator ArrayFilterDefinition<TItem>(BsonDocument)

Performs an implicit conversion from BsonDocument to ArrayFilterDefinition<TItem>.

public static implicit operator ArrayFilterDefinition<TItem>(BsonDocument document)

Parameters

document BsonDocument

The document.

Returns

ArrayFilterDefinition<TItem>

The result of the conversion.

implicit operator ArrayFilterDefinition<TItem>(string)

Performs an implicit conversion from string to ArrayFilterDefinition<TItem>.

public static implicit operator ArrayFilterDefinition<TItem>(string json)

Parameters

json string

The JSON string.

Returns

ArrayFilterDefinition<TItem>

The result of the conversion.