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

ServiceBusModelFactory.SubscriptionProperties 方法

定义

创建用于模拟的新 SubscriptionProperties 实例。

public static Azure.Messaging.ServiceBus.Administration.SubscriptionProperties SubscriptionProperties (string topicName, string subscriptionName, TimeSpan lockDuration = default, bool requiresSession = false, TimeSpan defaultMessageTimeToLive = default, TimeSpan autoDeleteOnIdle = default, bool deadLetteringOnMessageExpiration = false, int maxDeliveryCount = 0, bool enableBatchedOperations = false, Azure.Messaging.ServiceBus.Administration.EntityStatus status = default, string forwardTo = default, string forwardDeadLetteredMessagesTo = default, string userMetadata = default);
static member SubscriptionProperties : string * string * TimeSpan * bool * TimeSpan * TimeSpan * bool * int * bool * Azure.Messaging.ServiceBus.Administration.EntityStatus * string * string * string -> Azure.Messaging.ServiceBus.Administration.SubscriptionProperties
Public Shared Function SubscriptionProperties (topicName As String, subscriptionName As String, Optional lockDuration As TimeSpan = Nothing, Optional requiresSession As Boolean = false, Optional defaultMessageTimeToLive As TimeSpan = Nothing, Optional autoDeleteOnIdle As TimeSpan = Nothing, Optional deadLetteringOnMessageExpiration As Boolean = false, Optional maxDeliveryCount As Integer = 0, Optional enableBatchedOperations As Boolean = false, Optional status As EntityStatus = Nothing, Optional forwardTo As String = Nothing, Optional forwardDeadLetteredMessagesTo As String = Nothing, Optional userMetadata As String = Nothing) As SubscriptionProperties

参数

topicName
String
subscriptionName
String
lockDuration
TimeSpan
requiresSession
Boolean
defaultMessageTimeToLive
TimeSpan
autoDeleteOnIdle
TimeSpan
deadLetteringOnMessageExpiration
Boolean
maxDeliveryCount
Int32
enableBatchedOperations
Boolean
status
EntityStatus
forwardTo
String
forwardDeadLetteredMessagesTo
String
userMetadata
String

返回

适用于