IReceiveContextSettings.ValidityDuration 屬性

定義

取得或設定值,這個值會指定搭配使用直接通道時的連接逾時,以及搭配使用佇列通道時的訊息鎖定持續時間。Gets a value that specifies a connection timeout when used with direct channels and message lock duration when used with queued channels.

public:
 property TimeSpan ValidityDuration { TimeSpan get(); };
public TimeSpan ValidityDuration { get; }
member this.ValidityDuration : TimeSpan
Public ReadOnly Property ValidityDuration As TimeSpan

屬性值

逾時值。A timeout value.

備註

重要

如果ValidityDuration訊息的過期, 任何可用於處理的交易將會在交易期間發生過期時, 與工作流程實例一起中止。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.

適用於