Table of Contents

Method DatabaseExists

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

DatabaseExists(string)

Tests whether a database exists.

public virtual bool DatabaseExists(string databaseName)

Parameters

databaseName string

The name of the database.

Returns

bool

True if the database exists.