SALES: 1-800-867-1380

ServiceBusNamespaceClient Class

An anchor class used in managing entities, such as queues, topics, subscriptions, and rules, in your service namespace. You must provide service namespace address and access credentials in order to manage your service namespace.

System.Object
  Microsoft.ServiceBus.ServiceBusNamespaceClient

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

public class ServiceBusNamespaceClient

The ServiceBusNamespaceClient type exposes the following members.

  NameDescription
Public methodServiceBusNamespaceClient(String, TransportClientCredentialBase)Initializes a new instance of the ServiceBusNamespaceClient class with the given service namespace base address and credentials.
Public methodServiceBusNamespaceClient(String, ServiceBusNamespaceClientSettings)Initializes a new instance of the ServiceBusNamespaceClient class with the given service namespace base address and ServiceBusNamespaceClientSettings object.
Public methodServiceBusNamespaceClient(Uri, TransportClientCredentialBase)Initializes a new instance of the ServiceBusNamespaceClient class with the given service namespace URI base address and credentials.
Public methodServiceBusNamespaceClient(Uri, ServiceBusNamespaceClientSettings)Initializes a new instance of the ServiceBusNamespaceClient class with the given service namespace URI base address and ServiceBusNamespaceClientSettings object.
Top

  NameDescription
Public propertyAddressGets the service namespace base address.
Public propertySettingsGets the service namespace client settings.
Top

  NameDescription
Public methodBeginCreateQueue(String, AsyncCallback, Object)Asynchronous version of CreateQueue(String).
Public methodBeginCreateQueue(String, QueueDescription, AsyncCallback, Object)Asynchronous version of CreateQueue(String, QueueDescription).
Public methodBeginCreateTopic(String, AsyncCallback, Object)Asynchronous version of CreateTopic(String).
Public methodBeginCreateTopic(String, TopicDescription, AsyncCallback, Object)Asynchronous version of CreateTopic(String, TopicDescription).
Public methodBeginDeleteQueueAsynchronous version of DeleteQueue(String).
Public methodBeginDeleteTopicAsynchronous version of DeleteTopic(String).
Public methodBeginGetQueueAsynchronous version of GetQueue(String).
Public methodBeginGetQueuesAsynchronous version of GetQueues().
Public methodBeginGetTopicAsynchronous version of GetTopic(String).
Public methodBeginGetTopicsAsynchronous version of GetTopics().
Public methodCreateQueue(String)Creates a new queue in the service namespace with the given path.
Public methodCreateQueue(String, QueueDescription)Creates a new queue in the service namespace with the given path and queue description.
Public methodCreateTopic(String)Creates a new topic with the given service namespace path.
Public methodCreateTopic(String, TopicDescription)Creates a new topic with the given service namespace path and description.
Public methodDeleteQueueDeletes the queue described by the relative path of the service namespace base address.
Public methodDeleteTopicDeletes the topic described by path.
Public methodEndCreateQueueEnds an asynchronous request to create a queue.
Public methodEndCreateTopicEnds an asynchronous request to create a topic.
Public methodEndDeleteQueueEnds an asynchronous request to delete a queue.
Public methodEndDeleteTopicEnds an asynchronous request to delete a topic.
Public methodEndGetQueueEnds an asynchronous request to a get queue.
Public methodEndGetQueuesEnds an asynchronous request to retrieve all queues from the service namespace.
Public methodEndGetTopicEnds an asynchronous request to get a topic.
Public methodEndGetTopicsEnds an asynchronous request to retrieve all topics from the service namespace.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetQueueRetrieves the queue from the service namespace.
Public methodGetQueuesRetrieves an enumerable collection of all queues in the namespace.
Public methodGetTopicRetrieves the topic from the service namespace.
Public methodGetTopicsRetrieves a collection of topics in a service namespace.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

ServiceBusNamespaceSettings nsSettings =  new ServiceBusNamespaceSettings(); // with credentials and operation timeout
ServiceBusNamespaceClient client = new ServiceBusNamespaceClient(new Uri("baseUri"), NsSettings);

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft