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
writerIBsonWriterThe writer.
namestringThe name of the element.
codestringThe JavaScript code.