Constructor BsonJavaScriptWithScope
BsonJavaScriptWithScope(string, BsonDocument)
Initializes a new instance of the BsonJavaScriptWithScope class.
public BsonJavaScriptWithScope(string code, BsonDocument scope)
Parameters
code
stringThe JavaScript code.
scope
BsonDocumentA scope (a set of variables with values).