SubscriptionClient.Abandon 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
Abandon(Guid) |
Discards the message and relinquishes the message lock ownership. |
Abandon(Guid, IDictionary<String,Object>) |
Discards the message and relinquishes the message lock ownership. |
Abandon(Guid)
Discards the message and relinquishes the message lock ownership.
public void Abandon (Guid lockToken);
abstract member Abandon : Guid -> unit
override this.Abandon : Guid -> unit
Public Sub Abandon (lockToken As Guid)
Parameters
- lockToken
- Guid
The lock token bound to the locked message instance to abandon.
Exceptions
Thrown if the operation exceeded the timeout value set via OperationTimeout.
Thrown if the client entity has been closed or aborted.
Remarks
When the client fails to get the message from the queue/topic, this method should be called. Service Bus will increment the delivery count of the message. The client now can either attempt to receive the message again or move it to the dead-letter queue.
Applies to
Abandon(Guid, IDictionary<String,Object>)
Discards the message and relinquishes the message lock ownership.
public void Abandon (Guid lockToken, System.Collections.Generic.IDictionary<string,object> propertiesToModify);
abstract member Abandon : Guid * System.Collections.Generic.IDictionary<string, obj> -> unit
override this.Abandon : Guid * System.Collections.Generic.IDictionary<string, obj> -> unit
Public Sub Abandon (lockToken As Guid, propertiesToModify As IDictionary(Of String, Object))
Parameters
- lockToken
- Guid
The lock token bound to the locked message instance to abandon.
- propertiesToModify
- IDictionary<String,Object>
A collection of property objects to be modified.
Remarks
When the client fails to get the message from the queue/topic, this method should be called. Service Bus will increment the delivery count of the message. The client now can either attempt to receive the message again or move it to the dead-letter queue.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應