Sdílet prostřednictvím


ManagementClient.UpdateTopicAsync(TopicDescription, CancellationToken) Method

Definition

Updates an existing topic.

public virtual System.Threading.Tasks.Task<Microsoft.Azure.ServiceBus.Management.TopicDescription> UpdateTopicAsync (Microsoft.Azure.ServiceBus.Management.TopicDescription topicDescription, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateTopicAsync : Microsoft.Azure.ServiceBus.Management.TopicDescription * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.ServiceBus.Management.TopicDescription>
override this.UpdateTopicAsync : Microsoft.Azure.ServiceBus.Management.TopicDescription * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.ServiceBus.Management.TopicDescription>
Public Overridable Function UpdateTopicAsync (topicDescription As TopicDescription, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TopicDescription)

Parameters

topicDescription
TopicDescription

A TopicDescription object describing the attributes with which the topic will be updated.

cancellationToken
CancellationToken

Returns

The TopicDescription of the updated topic.

Exceptions

Topic descriptor is null.

Described topic was not found.

The operation times out.

No sufficient permission to perform this operation. You should check to ensure that your ManagementClient has the correct TokenProvider credentials to perform this operation.

Either the specified size in the description is not supported or the maximum allowable quota has been reached. You must specify one of the supported size values, delete existing entities, or increase your quota size.

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

An internal error or unexpected exception occurs.

Applies to