Method WriteJavaScript NamespaceMongoDB.Bson.IO AssemblyMongoDB.Bson.dll WriteJavaScript(string) Writes a BSON JavaScript to the writer. void WriteJavaScript(string code) Parameters code string The JavaScript code.