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.3.0
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
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns the hash code for this Class1 object.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberHashPassword(String, PasswordEvidence)
Calculates the password hash.
Public methodStatic memberHashPassword(String, String)
Calculates the password hash.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(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