ServiceBusModelFactory.SubscriptionProperties 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立模擬的新 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