IMessageReceiver.CompleteAsync(IEnumerable<String>) Method

Definition

Completes a series of Message using a list of lock tokens. This will delete the message from the service.

public System.Threading.Tasks.Task CompleteAsync (System.Collections.Generic.IEnumerable<string> lockTokens);
abstract member CompleteAsync : seq<string> -> System.Threading.Tasks.Task
Public Function CompleteAsync (lockTokens As IEnumerable(Of String)) As Task

Parameters

lockTokens
System.Collections.Generic.IEnumerable<System.String>

An System.Collections.Generic.IEnumerable`1 containing the lock tokens of the corresponding messages to complete.

Returns

System.Threading.Tasks.Task

The asynchronous operation.

Remarks

A lock token can be found in LockToken, only when ReceiveMode is set to PeekLock.

Applies to