Constructor MongoDBCRAuthenticator
- Namespace
- MongoDB.Driver.Core.Authentication
- Assembly
- MongoDB.Driver.Core.dll
MongoDBCRAuthenticator(UsernamePasswordCredential)
Initializes a new instance of the MongoDBCRAuthenticator class.
public MongoDBCRAuthenticator(UsernamePasswordCredential credential)
Parameters
credentialUsernamePasswordCredentialThe credential.
MongoDBCRAuthenticator(UsernamePasswordCredential, ServerApi)
Initializes a new instance of the MongoDBCRAuthenticator class.
public MongoDBCRAuthenticator(UsernamePasswordCredential credential, ServerApi serverApi)
Parameters
credentialUsernamePasswordCredentialThe credential.
serverApiServerApiThe server API.