Method DropOne
DropOne(string, CancellationToken)
Drops an index by its name.
public virtual void DropOne(string name, CancellationToken cancellationToken = default)
Parameters
name
stringThe name.
cancellationToken
CancellationTokenThe cancellation token.
DropOne(string, DropIndexOptions, CancellationToken)
Drops an index by its name.
public virtual void DropOne(string name, DropIndexOptions options, CancellationToken cancellationToken = default)
Parameters
name
stringThe name.
options
DropIndexOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
DropOne(IClientSessionHandle, string, CancellationToken)
Drops an index by its name.
public virtual void DropOne(IClientSessionHandle session, string name, CancellationToken cancellationToken = default)
Parameters
session
IClientSessionHandleThe session.
name
stringThe name.
cancellationToken
CancellationTokenThe cancellation token.
DropOne(IClientSessionHandle, string, DropIndexOptions, CancellationToken)
Drops an index by its name.
public virtual void DropOne(IClientSessionHandle session, string name, DropIndexOptions options, CancellationToken cancellationToken)
Parameters
session
IClientSessionHandleThe session.
name
stringThe name.
options
DropIndexOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.