Table of Contents

Method CollectionExists

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

CollectionExists(string)

Tests whether a collection exists on this database.

public virtual bool CollectionExists(string collectionName)

Parameters

collectionName string

The name of the collection.

Returns

bool

True if the collection exists.