你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ServiceBusModelFactory.TopicProperties 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建用于模拟的新 TopicProperties 实例。
public static Azure.Messaging.ServiceBus.Administration.TopicProperties TopicProperties (string name, long maxSizeInMegabytes = 0, bool requiresDuplicateDetection = false, TimeSpan defaultMessageTimeToLive = default, TimeSpan autoDeleteOnIdle = default, TimeSpan duplicateDetectionHistoryTimeWindow = default, bool enableBatchedOperations = false, Azure.Messaging.ServiceBus.Administration.EntityStatus status = default, bool enablePartitioning = false, long maxMessageSizeInKilobytes = 0);
static member TopicProperties : string * int64 * bool * TimeSpan * TimeSpan * TimeSpan * bool * Azure.Messaging.ServiceBus.Administration.EntityStatus * bool * int64 -> Azure.Messaging.ServiceBus.Administration.TopicProperties
Public Shared Function TopicProperties (name As String, Optional maxSizeInMegabytes As Long = 0, Optional requiresDuplicateDetection As Boolean = false, Optional defaultMessageTimeToLive As TimeSpan = Nothing, Optional autoDeleteOnIdle As TimeSpan = Nothing, Optional duplicateDetectionHistoryTimeWindow As TimeSpan = Nothing, Optional enableBatchedOperations As Boolean = false, Optional status As EntityStatus = Nothing, Optional enablePartitioning As Boolean = false, Optional maxMessageSizeInKilobytes As Long = 0) As TopicProperties
参数
- name
- String
- maxSizeInMegabytes
- Int64
- requiresDuplicateDetection
- Boolean
- defaultMessageTimeToLive
- TimeSpan
- autoDeleteOnIdle
- TimeSpan
- duplicateDetectionHistoryTimeWindow
- TimeSpan
- enableBatchedOperations
- Boolean
- status
- EntityStatus
- enablePartitioning
- Boolean
- maxMessageSizeInKilobytes
- Int64