Executes a Delete protocol.
Namespace:
MongoDB.Driver.Core.Bindings
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax WriteConcernResult Delete(
CollectionNamespace collectionNamespace,
BsonDocument query,
bool isMulti,
MessageEncoderSettings messageEncoderSettings,
WriteConcern writeConcern,
CancellationToken cancellationToken
)
Function Delete (
collectionNamespace As CollectionNamespace,
query As BsonDocument,
isMulti As Boolean,
messageEncoderSettings As MessageEncoderSettings,
writeConcern As WriteConcern,
cancellationToken As CancellationToken
) As WriteConcernResult
abstract Delete :
collectionNamespace : CollectionNamespace *
query : BsonDocument *
isMulti : bool *
messageEncoderSettings : MessageEncoderSettings *
writeConcern : WriteConcern *
cancellationToken : CancellationToken -> WriteConcernResult
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:
WriteConcernResultThe result of the Delete protocol.
See Also