Click or drag to resize

MongoIndexManagerBase<TDocument>.DropOne Method (String, DropIndexOptions, CancellationToken)

Drops an index by its name.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax
public virtual void DropOne(
	string name,
	DropIndexOptions options,
	CancellationToken cancellationToken = default
)

Parameters

name
Type: System.String
The name.
options
Type: MongoDB.Driver.DropIndexOptions
The options.
cancellationToken (Optional)
Type: System.Threading.CancellationToken
The cancellation token.

Implements

IMongoIndexManager<TDocument>.DropOne(String, DropIndexOptions, CancellationToken)
See Also