Table of Contents

Method Function

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

Function(BsonJavaScript)

Sets a key function.

public static BsonJavaScript Function(BsonJavaScript keyFunction)

Parameters

keyFunction BsonJavaScript

The key function.

Returns

BsonJavaScript

A BsonJavaScript.