Table of Contents

Method EnsureIndexes

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

EnsureIndexes()

Ensures that the proper indexes for GridFS exist (only creates the new indexes if there are fewer than 1000 GridFS files).

public void EnsureIndexes()

EnsureIndexes(int)

Ensures that the proper indexes for GridFS exist.

public void EnsureIndexes(int maxFiles)

Parameters

maxFiles int

Only create new indexes if there are fewer than this number of GridFS files).