ModuleClient.CompleteAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CompleteAsync(Message) |
Deletes a received message from the module queue. |
CompleteAsync(String) |
Deletes a received message from the module queue. |
CompleteAsync(Message, CancellationToken) |
Deletes a received message from the module queue. |
CompleteAsync(String, CancellationToken) |
Deletes a received message from the module queue. |
CompleteAsync(Message)
Deletes a received message from the module queue.
public System.Threading.Tasks.Task CompleteAsync (Microsoft.Azure.Devices.Client.Message message);
member this.CompleteAsync : Microsoft.Azure.Devices.Client.Message -> System.Threading.Tasks.Task
Public Function CompleteAsync (message As Message) As Task
Parameters
- message
- Message
The message.
Returns
The previously received message
Applies to
CompleteAsync(String)
Deletes a received message from the module queue.
public System.Threading.Tasks.Task CompleteAsync (string lockToken);
member this.CompleteAsync : string -> System.Threading.Tasks.Task
Public Function CompleteAsync (lockToken As String) As Task
Parameters
- lockToken
- String
The message lockToken.
Returns
The lock identifier for the previously received message
Applies to
CompleteAsync(Message, CancellationToken)
Deletes a received message from the module queue.
public System.Threading.Tasks.Task CompleteAsync (Microsoft.Azure.Devices.Client.Message message, System.Threading.CancellationToken cancellationToken);
member this.CompleteAsync : Microsoft.Azure.Devices.Client.Message * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CompleteAsync (message As Message, cancellationToken As CancellationToken) As Task
Parameters
- message
- Message
The message.
- cancellationToken
- CancellationToken
A cancellation token to cancel the operation.
Returns
The previously received message
Exceptions
Thrown when the operation has been canceled.
Applies to
CompleteAsync(String, CancellationToken)
Deletes a received message from the module queue.
public System.Threading.Tasks.Task CompleteAsync (string lockToken, System.Threading.CancellationToken cancellationToken);
member this.CompleteAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CompleteAsync (lockToken As String, cancellationToken As CancellationToken) As Task
Parameters
- lockToken
- String
The message lockToken.
- cancellationToken
- CancellationToken
A cancellation token to cancel the operation.
Returns
The lock identifier for the previously received message
Exceptions
Thrown when the operation has been canceled.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기