Udostępnij za pośrednictwem


ServiceBusAdministrationClient.GetNamespacePropertiesAsync Method

Definition

Gets information related to the currently used namespace.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Messaging.ServiceBus.Administration.NamespaceProperties>> GetNamespacePropertiesAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetNamespacePropertiesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Messaging.ServiceBus.Administration.NamespaceProperties>>
override this.GetNamespacePropertiesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Messaging.ServiceBus.Administration.NamespaceProperties>>
Public Overridable Function GetNamespacePropertiesAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NamespaceProperties))

Parameters

cancellationToken
CancellationToken

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

Returns

NamespaceProperties containing namespace information.

Exceptions

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 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

Works with any claim (Send/Listen/Manage).

Applies to