Table of Contents

Constructor CollectionNamespace

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Core.dll

CollectionNamespace(string, string)

Initializes a new instance of the CollectionNamespace class.

public CollectionNamespace(string databaseName, string collectionName)

Parameters

databaseName string

The name of the database.

collectionName string

The name of the collection.

CollectionNamespace(DatabaseNamespace, string)

Initializes a new instance of the CollectionNamespace class.

public CollectionNamespace(DatabaseNamespace databaseNamespace, string collectionName)

Parameters

databaseNamespace DatabaseNamespace

The database namespace.

collectionName string

The name of the collection.