Table of Contents

Constructor BsonJavaScriptWithScope

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

BsonJavaScriptWithScope(string, BsonDocument)

Initializes a new instance of the BsonJavaScriptWithScope class.

public BsonJavaScriptWithScope(string code, BsonDocument scope)

Parameters

code string

The JavaScript code.

scope BsonDocument

A scope (a set of variables with values).