Table of Contents

Class MongoUser

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

Represents a MongoDB user.

[Serializable]
[Obsolete("Use the new user management commands instead.")]
public class MongoUser : IEquatable<MongoUser>
Inheritance
MongoUser
Implements
Inherited Members
Extension Methods

Constructors

MongoUser(string, PasswordEvidence, bool)

Creates a new instance of MongoUser.

MongoUser(string, string, bool)

Creates a new instance of MongoUser.

Properties

IsReadOnly

Gets or sets a value indicating whether the user is a read-only user.

PasswordHash

Gets or sets the password hash.

Username

Gets or sets the username.

Methods

Equals(MongoUser)

Determines whether this instance and another specified MongoUser object have the same value.

Equals(MongoUser, MongoUser)

Determines whether two specified MongoUser objects have the same value.

Equals(object)

Determines whether this instance and a specified object, which must also be a MongoUser object, have the same value.

GetHashCode()

Returns the hash code for this Class1 object.

HashPassword(string, PasswordEvidence)

Calculates the password hash.

HashPassword(string, string)

Calculates the password hash.

ToString()

Returns a string representation of the user.

Operators

operator ==(MongoUser, MongoUser)

Determines whether two specified MongoUser objects have the same value.

operator !=(MongoUser, MongoUser)

Determines whether two specified MongoUser objects have different values.