共用方式為


ServiceBusAdministrationClient.GetSubscriptionsRuntimePropertiesAsync Method

Definition

Retrieves the list of runtime properties for subscriptions present in the namespace.

public virtual Azure.AsyncPageable<Azure.Messaging.ServiceBus.Administration.SubscriptionRuntimeProperties> GetSubscriptionsRuntimePropertiesAsync (string topicName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSubscriptionsRuntimePropertiesAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Messaging.ServiceBus.Administration.SubscriptionRuntimeProperties>
override this.GetSubscriptionsRuntimePropertiesAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Messaging.ServiceBus.Administration.SubscriptionRuntimeProperties>
Public Overridable Function GetSubscriptionsRuntimePropertiesAsync (topicName As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SubscriptionRuntimeProperties)

Parameters

topicName
String

The name of the topic relative to service bus namespace.

cancellationToken
CancellationToken

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

Returns

An AsyncPageable<T> describing the subscriptions runtime properties.

Exceptions

The operation times out. The timeout period is initialized through the ServiceBusAdministrationClientOptions class (see Retry property). You may need to increase the value of timeout to avoid this exception if the timeout value is relatively low.

The server is busy. You should wait before you retry the operation.

The topic name is null or empty.

The topic name exceeds the maximum allowed length.

The topic name is otherwise invalid.

Insufficient permission to perform this operation. You should check to ensure that your ServiceBusAdministrationClient has the necessary claims to perform this operation. https://learn.microsoft.com/azure/service-bus-messaging/service-bus-sas#rights-required-for-service-bus-operations

  • The specified entity could not be found. The Reason will be set to MessagingEntityNotFound in this case.
  • The operation timed out. The Reason will be set to ServiceTimeout in this case.
  • The server is busy. You should wait before you retry the operation. The failure reason will be set to ServiceBusy in this case.
  • An internal error or unexpected exception occurs. The failure reason will be set to GeneralError in this case.

Remarks

Maximum value allowed is 100 per page.

Applies to