Click or drag to resize

IChannelDelete Method

Executes a Delete protocol.

Namespace:  MongoDB.Driver.Core.Bindings
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax
WriteConcernResult Delete(
	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: WriteConcernResult
The result of the Delete protocol.
See Also