Condividi tramite


ServiceBusRuleManager.GetRulesAsync(CancellationToken) Method

Definition

Iterates over the rules associated with the subscription.

public virtual System.Collections.Generic.IAsyncEnumerable<Azure.Messaging.ServiceBus.Administration.RuleProperties> GetRulesAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetRulesAsync : System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Azure.Messaging.ServiceBus.Administration.RuleProperties>
override this.GetRulesAsync : System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Azure.Messaging.ServiceBus.Administration.RuleProperties>
Public Overridable Function GetRulesAsync (Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of RuleProperties)

Parameters

cancellationToken
CancellationToken

An optional CancellationToken instance to signal the request to cancel the operation.

Returns

Returns each rule on the associated subscription.

Applies to