ServiceBusNamespaceClient Constructor (String, TransportClientCredentialBase)
Initializes a new instance of the ServiceBusNamespaceClient class with the given service namespace base address and credentials.
Namespace: Microsoft.ServiceBus
Assembly: Microsoft.ServiceBus.Messaging (in Microsoft.ServiceBus.Messaging.dll)
Syntax
'Declaration
Public Sub New ( _
address As String, _
credential As TransportClientCredentialBase _
)
'Usage
Dim address As String
Dim credential As TransportClientCredentialBase
Dim instance As New ServiceBusNamespaceClient(address, _
credential)
public ServiceBusNamespaceClient(
string address,
TransportClientCredentialBase credential
)
public:
ServiceBusNamespaceClient(
String^ address,
TransportClientCredentialBase^ credential
)
new :
address:string *
credential:TransportClientCredentialBase -> ServiceBusNamespaceClient
public function ServiceBusNamespaceClient(
address : String,
credential : TransportClientCredentialBase
)
Parameters
- address
Type: System.String
The full address of the service namespace.
- credential
Type: Microsoft.ServiceBus.Description.TransportClientCredentialBase
The service namespace access credentials.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | address or credential is null. |
Remarks
Although you cannot include paths in the service namespace address, you can specify a credential that authorizes you to perform actions only on some sublevels of the base address.
See Also
Reference
ServiceBusNamespaceClient Class