Constructor PlainAuthenticator
- Namespace
- MongoDB.Driver.Core.Authentication
- Assembly
- MongoDB.Driver.Core.dll
PlainAuthenticator(UsernamePasswordCredential)
Initializes a new instance of the PlainAuthenticator class.
[Obsolete("Use the newest overload instead.")]
public PlainAuthenticator(UsernamePasswordCredential credential)
Parameters
credential
UsernamePasswordCredentialThe credential.
PlainAuthenticator(UsernamePasswordCredential, ServerApi)
Initializes a new instance of the PlainAuthenticator class.
public PlainAuthenticator(UsernamePasswordCredential credential, ServerApi serverApi)
Parameters
credential
UsernamePasswordCredentialThe credential.
serverApi
ServerApiThe server API.