Table of Contents

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 UsernamePasswordCredential

The credential.

MongoDBCRAuthenticator(UsernamePasswordCredential, ServerApi)

Initializes a new instance of the MongoDBCRAuthenticator class.

public MongoDBCRAuthenticator(UsernamePasswordCredential credential, ServerApi serverApi)

Parameters

credential UsernamePasswordCredential

The credential.

serverApi ServerApi

The server API.