ServiceBusRuleManager.GetRulesAsync(CancellationToken) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Iterates over the rules associated with the subscription.
C#
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)
- cancellationToken
- CancellationToken
An optional CancellationToken instance to signal the request to cancel the operation.
Returns each rule on the associated subscription.
Product | Versions |
---|---|
Azure SDK for .NET | Latest, Preview |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET feedback
Azure SDK for .NET is an open source project. Select a link to provide feedback: