Table of Contents

Method WriteJavaScript

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

WriteJavaScript(IBsonWriter, string, string)

Writes a BSON JavaScript element to the writer.

public static void WriteJavaScript(this IBsonWriter writer, string name, string code)

Parameters

writer IBsonWriter

The writer.

name string

The name of the element.

code string

The JavaScript code.