Table of Contents

Method CreatePlainCredential

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

CreatePlainCredential(string, string, string)

Creates a PLAIN credential.

public static MongoCredential CreatePlainCredential(string databaseName, string username, string password)

Parameters

databaseName string

Name of the database.

username string

The username.

password string

The password.

Returns

MongoCredential

A credential for PLAIN.

CreatePlainCredential(string, string, SecureString)

Creates a PLAIN credential.

public static MongoCredential CreatePlainCredential(string databaseName, string username, SecureString password)

Parameters

databaseName string

Name of the database.

username string

The username.

password SecureString

The password.

Returns

MongoCredential

A credential for PLAIN.