MongoGridFS.EnsureIndexes Method (original) (raw)

MongoGridFSEnsureIndexes Method

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

Namespace: MongoDB.Driver.GridFS
Assembly: MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed

Syntax

C#

VB

F#

Copy

public void EnsureIndexes()

Public Sub EnsureIndexes

member EnsureIndexes : unit -> unit

See Also

Reference

MongoGridFS Class

EnsureIndexes Overload

MongoDB.Driver.GridFS Namespace