Table of Contents

Class QueryWrapper

Namespace
MongoDB.Driver.Wrappers
Assembly
MongoDB.Driver.Legacy.dll

Represents a wrapped object that can be used where an IMongoQuery is expected (the wrapped object is expected to serialize properly).

[BsonSerializer(typeof(QueryWrapper.Serializer))]
public class QueryWrapper : BaseWrapper, IMongoQuery
Inheritance
QueryWrapper
Implements
Derived
Inherited Members
Extension Methods

Constructors

QueryWrapper(object)

Initializes a new instance of the QueryWrapper class.

public QueryWrapper(object query)

Parameters

query object

The wrapped object.

Methods

Create(object)

Creates a new instance of the QueryWrapper class.

public static QueryWrapper Create(object query)

Parameters

query object

The wrapped object.

Returns

QueryWrapper

A new instance of QueryWrapper or null.