Manager. Rename Topic(String, String) Method
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.
Renames a topic inside a namespace. This is currently NOT supported with Premium Service Bus SKU.
public Microsoft.ServiceBus.Messaging.TopicDescription RenameTopic (string path, string newPath);
member this.RenameTopic : string * string -> Microsoft.ServiceBus.Messaging.TopicDescription
Public Function RenameTopic (path As String, newPath As String) As TopicDescription
The path to an existing topic.
The new path to the renamed topic.
path is null or empty.
Thrown when the length of
path is more than 290 characters.
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.