Click or drag to resize

MongoDBCRAuthenticator Constructor (UsernamePasswordCredential, ServerApi)

Initializes a new instance of the MongoDBCRAuthenticator class.

Namespace:  MongoDB.Driver.Core.Authentication
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax
public MongoDBCRAuthenticator(
	UsernamePasswordCredential credential,
	ServerApi serverApi
)

Parameters

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