Click or drag to resize

PlainAuthenticator Constructor (UsernamePasswordCredential, ServerApi)

Initializes a new instance of the PlainAuthenticator class.

Namespace:  MongoDB.Driver.Core.Authentication
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public PlainAuthenticator(
	UsernamePasswordCredential credential,
	ServerApi serverApi
)

Parameters

credential
Type: MongoDB.Driver.Core.AuthenticationUsernamePasswordCredential
The credential.
serverApi
Type: MongoDB.DriverServerApi
The server API.
See Also