Method WriteJavaScriptWithScope
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
IBsonWriterThe writer.
name
stringThe name of the element.
code
stringThe JavaScript code.