Method CreatePlainCredential
CreatePlainCredential(string, string, string)
Creates a PLAIN credential.
public static MongoCredential CreatePlainCredential(string databaseName, string username, string password)
Parameters
databaseName
stringName of the database.
username
stringThe username.
password
stringThe 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
stringName of the database.
username
stringThe username.
password
SecureStringThe password.
Returns
- MongoCredential
A credential for PLAIN.