Click or drag to resize

IChannelDeleteAsync Method

Executes a Delete protocol.

Namespace:  MongoDB.Driver.Core.Bindings
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax
Task<WriteConcernResult> DeleteAsync(
	CollectionNamespace collectionNamespace,
	BsonDocument query,
	bool isMulti,
	MessageEncoderSettings messageEncoderSettings,
	WriteConcern writeConcern,
	CancellationToken cancellationToken
)

Parameters

collectionNamespace
Type: MongoDB.DriverCollectionNamespace
The collection namespace.
query
Type: MongoDB.BsonBsonDocument
The query.
isMulti
Type: SystemBoolean
if set to true all matching documents are deleted.
messageEncoderSettings
Type: MongoDB.Driver.Core.WireProtocol.Messages.EncodersMessageEncoderSettings
The message encoder settings.
writeConcern
Type: MongoDB.DriverWriteConcern
The write concern.
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: TaskWriteConcernResult
A Task whose result is the result of the Delete protocol.
See Also