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
- writerIBsonWriter
- The writer. 
- namestring
- The name of the element. 
- codestring
- The JavaScript code.