Click or drag to resize

CreateCollectionOperation.ExecuteAsync Method

Executes the operation.

Namespace:  MongoDB.Driver.Core.Operations
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public Task<BsonDocument> ExecuteAsync(
	IWriteBinding binding,
	CancellationToken cancellationToken
)

Parameters

binding
Type: MongoDB.Driver.Core.Bindings.IWriteBinding
The binding.
cancellationToken
Type: System.Threading.CancellationToken
The cancellation token.

Return Value

Type: Task<BsonDocument>
A Task whose result is the result of the operation.

Implements

IWriteOperation<TResult>.ExecuteAsync(IWriteBinding, CancellationToken)
See Also