Udostępnij za pośrednictwem


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
IEnumerable<String>

An IEnumerable<T> containing the lock tokens of the corresponding messages to complete.

Returns

Remarks

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

Applies to