IChannelDeleteAsync Method |
Executes a Delete protocol.
Namespace:
MongoDB.Driver.Core.Bindings
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
Syntax Task<WriteConcernResult> DeleteAsync(
CollectionNamespace collectionNamespace,
BsonDocument query,
bool isMulti,
MessageEncoderSettings messageEncoderSettings,
WriteConcern writeConcern,
CancellationToken cancellationToken
)
Function DeleteAsync (
collectionNamespace As CollectionNamespace,
query As BsonDocument,
isMulti As Boolean,
messageEncoderSettings As MessageEncoderSettings,
writeConcern As WriteConcern,
cancellationToken As CancellationToken
) As Task(Of WriteConcernResult)
abstract DeleteAsync :
collectionNamespace : CollectionNamespace *
query : BsonDocument *
isMulti : bool *
messageEncoderSettings : MessageEncoderSettings *
writeConcern : WriteConcern *
cancellationToken : CancellationToken -> Task<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:
TaskWriteConcernResultA Task whose result is the result of the Delete protocol.
See Also