Table of Contents

Method WithMechanismProperty

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

WithMechanismProperty(string, object)

Creates a new MongoCredential with the specified mechanism property.

public MongoCredential WithMechanismProperty(string key, object value)

Parameters

key string

The key.

value object

The value.

Returns

MongoCredential

A new MongoCredential with the specified mechanism property.