Table of Contents

Class JsonCommand<TResult>

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

Type Parameters

TResult
Inheritance
Command<TResult>
JsonCommand<TResult>
Inherited Members

Constructors

JsonCommand(string, IBsonSerializer<TResult>)

public JsonCommand(string json, IBsonSerializer<TResult> resultSerializer = null)

Parameters

json string
resultSerializer IBsonSerializer<TResult>

Properties

Json

public string Json { get; }

Property Value

string

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>