Click or drag to resize

MongoDatabaseBase Class

Base class for implementors of IMongoDatabase.
Inheritance Hierarchy
SystemObject
  MongoDB.DriverMongoDatabaseBase

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax
public abstract class MongoDatabaseBase : IMongoDatabase

The MongoDatabaseBase type exposes the following members.

Constructors
  NameDescription
Protected methodMongoDatabaseBase
Initializes a new instance of the MongoDatabaseBase class
Top
Properties
  NameDescription
Public propertyClient
Gets the client.
Public propertyDatabaseNamespace
Gets the namespace of the database.
Public propertySettings
Gets the settings.
Top
Methods
  NameDescription
Public methodCreateCollection(String, CreateCollectionOptions, CancellationToken)
Creates the collection with the specified name.
Public methodCreateCollection(IClientSessionHandle, String, CreateCollectionOptions, CancellationToken)
Creates the collection with the specified name.
Public methodCreateCollectionAsync(String, CreateCollectionOptions, CancellationToken)
Creates the collection with the specified name.
Public methodCreateCollectionAsync(IClientSessionHandle, String, CreateCollectionOptions, CancellationToken)
Creates the collection with the specified name.
Public methodCreateViewTDocument, TResult(String, String, PipelineDefinitionTDocument, TResult, CreateViewOptionsTDocument, CancellationToken)
Creates a view.
Public methodCreateViewTDocument, TResult(IClientSessionHandle, String, String, PipelineDefinitionTDocument, TResult, CreateViewOptionsTDocument, CancellationToken)
Creates a view.
Public methodCreateViewAsyncTDocument, TResult(String, String, PipelineDefinitionTDocument, TResult, CreateViewOptionsTDocument, CancellationToken)
Creates a view.
Public methodCreateViewAsyncTDocument, TResult(IClientSessionHandle, String, String, PipelineDefinitionTDocument, TResult, CreateViewOptionsTDocument, CancellationToken)
Creates a view.
Public methodDropCollection(String, CancellationToken)
Drops the collection with the specified name.
Public methodDropCollection(IClientSessionHandle, String, CancellationToken)
Drops the collection with the specified name.
Public methodDropCollectionAsync(String, CancellationToken)
Drops the collection with the specified name.
Public methodDropCollectionAsync(IClientSessionHandle, String, CancellationToken)
Drops the collection with the specified name.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetCollectionTDocument
Gets a collection.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodListCollections(ListCollectionsOptions, CancellationToken)
Lists all the collections on the server.
Public methodListCollections(IClientSessionHandle, ListCollectionsOptions, CancellationToken)
Lists all the collections on the server.
Public methodListCollectionsAsync(ListCollectionsOptions, CancellationToken)
Lists all the collections on the server.
Public methodListCollectionsAsync(IClientSessionHandle, ListCollectionsOptions, CancellationToken)
Lists all the collections on the server.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRenameCollection(String, String, RenameCollectionOptions, CancellationToken)
Renames the collection.
Public methodRenameCollection(IClientSessionHandle, String, String, RenameCollectionOptions, CancellationToken)
Renames the collection.
Public methodRenameCollectionAsync(String, String, RenameCollectionOptions, CancellationToken)
Renames the collection.
Public methodRenameCollectionAsync(IClientSessionHandle, String, String, RenameCollectionOptions, CancellationToken)
Renames the collection.
Public methodRunCommandTResult(CommandTResult, ReadPreference, CancellationToken)
Runs a command.
Public methodRunCommandTResult(IClientSessionHandle, CommandTResult, ReadPreference, CancellationToken)
Runs a command.
Public methodRunCommandAsyncTResult(CommandTResult, ReadPreference, CancellationToken)
Runs a command.
Public methodRunCommandAsyncTResult(IClientSessionHandle, CommandTResult, ReadPreference, CancellationToken)
Runs a command.
Public methodToString (Inherited from Object.)
Public methodWithReadConcern
Returns a new IMongoDatabase instance with a different read concern setting.
Public methodWithReadPreference
Returns a new IMongoDatabase instance with a different read preference setting.
Public methodWithWriteConcern
Returns a new IMongoDatabase instance with a different write concern setting.
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