Table of Contents

Constructor ObjectCommand

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

ObjectCommand(object, IBsonSerializer<TResult>)

Initializes a new instance of the ObjectCommand<TResult> class.

public ObjectCommand(object obj, IBsonSerializer<TResult> resultSerializer = null)

Parameters

obj object

The object.

resultSerializer IBsonSerializer<TResult>

The result serializer.