Click or drag to resize

IChannel.Delete Method

Executes a Delete protocol.

Namespace:  MongoDB.Driver.Core.Bindings
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
WriteConcernResult Delete(
	CollectionNamespace collectionNamespace,
	BsonDocument query,
	bool isMulti,
	MessageEncoderSettings messageEncoderSettings,
	WriteConcern writeConcern,
	CancellationToken cancellationToken
)

Parameters

collectionNamespace
Type: MongoDB.Driver.CollectionNamespace
The collection namespace.
query
Type: MongoDB.Bson.BsonDocument
The query.
isMulti
Type: System.Boolean
if set to true all matching documents are deleted.
messageEncoderSettings
Type: MongoDB.Driver.Core.WireProtocol.Messages.Encoders.MessageEncoderSettings
The message encoder settings.
writeConcern
Type: MongoDB.Driver.WriteConcern
The write concern.
cancellationToken
Type: System.Threading.CancellationToken
The cancellation token.

Return Value

Type: WriteConcernResult
The result of the Delete protocol.
See Also