Class DatabaseNamespace

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Represents a database namespace.

public sealed class DatabaseNamespace : IEquatable<DatabaseNamespace>

Inheritance

DatabaseNamespace

Implements

Inherited Members

Constructors

DatabaseNamespace(string)

Initializes a new instance of the DatabaseNamespace class.

Properties

Admin

Gets the admin database namespace.

DatabaseName

Gets the name of the database.

Methods

Equals(DatabaseNamespace)

Indicates whether the current object is equal to another object of the same type.

Equals(object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

IsValid(string)

Determines whether the specified database name is valid.

ToString()

Returns a string that represents the current object.