NamespaceManager.RenameTopicAsync(String, String) NamespaceManager.RenameTopicAsync(String, String) NamespaceManager.RenameTopicAsync(String, String) Method

Definition

Asynchronous version of RenameTopic(String, String).

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.TopicDescription> RenameTopicAsync (string path, string newPath);
member this.RenameTopicAsync : string * string -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.TopicDescription>
Public Function RenameTopicAsync (path As String, newPath As String) As Task(Of TopicDescription)

Parameters

path
String String String

The path to an existing topic.

newPath
String String String

The new path to the renamed topic.

Returns

Exceptions

Thrown when the operation times out. The timeout period is initialized through the NamespaceManagerSettings class. You can increase the value of the OperationTimeout property to avoid this exception if the timeout value is relatively low.

Thrown when the source topic with the specified path does not exist.

Thrown when the target topic with the same path exists within the same namespace.

Thrown when the client does not have credentials to perform the operation.

Thrown when an internal error or unexpected exception occurs.

Applies to