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

QueueDescription.DefaultMessageTimeToLive 属性

定义

获取或设置默认消息生存时间值。 这是消息过期的持续时间,从消息发送到服务总线时开始。 这是未在消息本身上设置 时 TimeToLive 使用的默认值。早于 TimeToLive 值的消息将过期,不再保留在消息存储中。 订阅者将无法接收过期的消息。消息的 TimeToLive 值可以低于此处指定的值,但默认情况下,TimeToLive 设置为 MaxValue。 因此,此属性将成为应用于消息的默认生存时间值。

public TimeSpan DefaultMessageTimeToLive { get; set; }
member this.DefaultMessageTimeToLive : TimeSpan with get, set
Public Property DefaultMessageTimeToLive As TimeSpan

属性值

默认消息生存时间值。

适用于