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
credential
UsernamePasswordCredentialThe credential.
MongoDBCRAuthenticator(UsernamePasswordCredential, ServerApi)
Initializes a new instance of the MongoDBCRAuthenticator class.
public MongoDBCRAuthenticator(UsernamePasswordCredential credential, ServerApi serverApi)
Parameters
credential
UsernamePasswordCredentialThe credential.
serverApi
ServerApiThe server API.