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

IWithDefaultMessageTTL.WithDefaultMessageTTL(TimeSpan) 方法

定义

指定消息过期的持续时间。 注意:除非显式重写,否则默认 ttl 为无限 (TimeSpan.Max) 。

public Microsoft.Azure.Management.ServiceBus.Fluent.Topic.Definition.IWithCreate WithDefaultMessageTTL (TimeSpan ttl);
abstract member WithDefaultMessageTTL : TimeSpan -> Microsoft.Azure.Management.ServiceBus.Fluent.Topic.Definition.IWithCreate
Public Function WithDefaultMessageTTL (ttl As TimeSpan) As IWithCreate

参数

ttl
TimeSpan

生存时间持续时间。

返回

适用于