Table of Contents

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 UsernamePasswordCredential

The credential.

PlainAuthenticator(UsernamePasswordCredential, ServerApi)

Initializes a new instance of the PlainAuthenticator class.

public PlainAuthenticator(UsernamePasswordCredential credential, ServerApi serverApi)

Parameters

credential UsernamePasswordCredential

The credential.

serverApi ServerApi

The server API.