你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IWithMessageLockDuration.WithMessageLockDurationInSeconds(Int32) 方法

定义

指定消息锁定给其他接收方的时间量。 注意:除非显式重写它,否则默认锁定持续时间为 60 秒,允许的最大值为 300 秒。

public Microsoft.Azure.Management.ServiceBus.Fluent.Subscription.Definition.IWithCreate WithMessageLockDurationInSeconds (int durationInSeconds);
abstract member WithMessageLockDurationInSeconds : int -> Microsoft.Azure.Management.ServiceBus.Fluent.Subscription.Definition.IWithCreate
Public Function WithMessageLockDurationInSeconds (durationInSeconds As Integer) As IWithCreate

参数

durationInSeconds
Int32

锁定的持续时间(以秒为单位)。

返回

适用于