MsmqBindingElementBase.ValidityDuration Property
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.
Gets or sets a value that specifies the duration a message will be locked by the receive context feature.
public:
property TimeSpan ValidityDuration { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan ValidityDuration { get; set; }
member this.ValidityDuration : TimeSpan with get, set
Public Property ValidityDuration As TimeSpan
Property Value
The duration a message will be locked by the receive context feature.
Exceptions
The value is less than zero or is larger than Int32.MaxValue.
Remarks
The default value is 5 minutes. Receive context locks the message for inspection until it is either consumed or released back onto the queue. The validity duration property specifies how long the message will remain locked by receive context before it is automatically released back onto the queue.
Important
If ValidityDuration expires for a message, any transaction that may be used for its processing will be aborted along with the workflow instance if the expiration occurs during the transaction.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για