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
- Mongo
Credential 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
SecureString The password.
Returns
- Mongo
Credential A credential for PLAIN.