Click or drag to resize

MongoUser Class

Note: This API is now obsolete.

Represents a MongoDB user.
Inheritance Hierarchy
SystemObject
  MongoDB.DriverMongoUser

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax
[SerializableAttribute]
[ObsoleteAttribute("Use the new user management commands instead.")]
public class MongoUser : IEquatable<MongoUser>

The MongoUser type exposes the following members.

Constructors
  NameDescription
Public methodMongoUser(String, PasswordEvidence, Boolean)
Creates a new instance of MongoUser.
Public methodMongoUser(String, String, Boolean)
Creates a new instance of MongoUser.
Top
Properties
  NameDescription
Public propertyIsReadOnly
Gets or sets a value indicating whether the user is a read-only user.
Public propertyPasswordHash
Gets or sets the password hash.
Public propertyUsername
Gets or sets the username.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether this instance and a specified object, which must also be a MongoUser object, have the same value.
(Overrides ObjectEquals(Object).)
Public methodEquals(MongoUser)
Determines whether this instance and another specified MongoUser object have the same value.
Public methodStatic memberEquals(MongoUser, MongoUser)
Determines whether two specified MongoUser objects have the same value.
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode
Returns the hash code for this Class1 object.
(Overrides ObjectGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberHashPassword(String, PasswordEvidence)
Calculates the password hash.
Public methodStatic memberHashPassword(String, String)
Calculates the password hash.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString
Returns a string representation of the user.
(Overrides ObjectToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether two specified MongoUser objects have the same value.
Public operatorStatic memberInequality
Determines whether two specified MongoUser objects have different values.
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also