Table of Contents

Method WriteJavaScriptWithScope

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

WriteJavaScriptWithScope(IBsonWriter, string, string)

Writes a BSON JavaScript element to the writer (call WriteStartDocument to start writing the scope).

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

Parameters

writer IBsonWriter

The writer.

name string

The name of the element.

code string

The JavaScript code.