Table of Contents

Constructor MongoDBX509Authenticator

Namespace
MongoDB.Driver.Core.Authentication
Assembly
MongoDB.Driver.Core.dll

MongoDBX509Authenticator(string)

Initializes a new instance of the MongoDBX509Authenticator class.

[Obsolete("Use the newest overload instead.")]
public MongoDBX509Authenticator(string username)

Parameters

username string

The username.

MongoDBX509Authenticator(string, ServerApi)

Initializes a new instance of the MongoDBX509Authenticator class.

public MongoDBX509Authenticator(string username, ServerApi serverApi)

Parameters

username string

The username.

serverApi ServerApi

The server API.