Table of Contents

Method Replace

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Replace(string, string, bool?)

A replace map-reduce output options.

[Obsolete("Use an overload of Replace that does not have a sharded parameter instead.")]
public static MapReduceOutputOptions Replace(string collectionName, string databaseName = null, bool? sharded = null)

Parameters

collectionName string

The name of the collection.

databaseName string

Name of the database.

sharded bool?

Whether the output collection should be sharded.

Returns

MapReduceOutputOptions

A replace map-reduce output options.

Replace(string, string)

A replace map-reduce output options.

public static MapReduceOutputOptions Replace(string collectionName, string databaseName)

Parameters

collectionName string

The name of the collection.

databaseName string

Name of the database.

Returns

MapReduceOutputOptions

A replace map-reduce output options.