Share via


ServiceBusNamespaceClient.DeleteTopic Method

Deletes the topic described by path.

Namespace:  Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus.Messaging (in Microsoft.ServiceBus.Messaging.dll)

Syntax

'Declaration
Public Sub DeleteTopic ( _
    path As String _
)
'Usage
Dim instance As ServiceBusNamespaceClient
Dim path As String

instance.DeleteTopic(path)
public void DeleteTopic(
    string path
)
public:
void DeleteTopic(
    String^ path
)
member DeleteTopic : 
        path:string -> unit 
public function DeleteTopic(
    path : String
)

Parameters

  • path
    Type: System.String
    Path of the topic relative to the service namespace base address.

Exceptions

Exception Condition
ArgumentException

path is null or empty, or path starts or ends with "/".

See Also

Reference

ServiceBusNamespaceClient Class

Microsoft.ServiceBus Namespace