Table of Contents

Constructor MongoUser

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

MongoUser(string, PasswordEvidence, bool)

Creates a new instance of MongoUser.

public MongoUser(string username, PasswordEvidence password, bool isReadOnly)

Parameters

username string

The username.

password PasswordEvidence

The password.

isReadOnly bool

Whether the user has read-only access.

MongoUser(string, string, bool)

Creates a new instance of MongoUser.

public MongoUser(string username, string passwordHash, bool isReadOnly)

Parameters

username string

The username.

passwordHash string

The password hash.

isReadOnly bool

Whether the user has read-only access.