Table of Contents

Class ObjectCommand<TResult>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll
public sealed class ObjectCommand<TResult> : Command<TResult>

Type Parameters

TResult
Inheritance
Command<TResult>
ObjectCommand<TResult>
Inherited Members

Constructors

ObjectCommand(object, IBsonSerializer<TResult>)

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

Parameters

obj object
resultSerializer IBsonSerializer<TResult>

Properties

Object

public object Object { get; }

Property Value

object

ResultSerializer

public IBsonSerializer<TResult> ResultSerializer { get; }

Property Value

IBsonSerializer<TResult>

Methods

Render(IBsonSerializerRegistry)

public override RenderedCommand<TResult> Render(IBsonSerializerRegistry serializerRegistry)

Parameters

serializerRegistry IBsonSerializerRegistry

Returns

RenderedCommand<TResult>