ServiceBusAdministrationClient Constructors
Definition
Important
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.
Overloads
ServiceBusAdministrationClient()
Parameterless constructor to allow mocking.
protected ServiceBusAdministrationClient ();
Protected Sub New ()
Applies to
ServiceBusAdministrationClient(String)
Initializes a new ServiceBusAdministrationClient which can be used to perform administration operations on ServiceBus entities.
public ServiceBusAdministrationClient (string connectionString);
new Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClient : string -> Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClient
Public Sub New (connectionString As String)
Parameters
- connectionString
- String
Namespace connection string.
Applies to
ServiceBusAdministrationClient(String, TokenCredential)
Initializes a new ServiceBusAdministrationClient which can be used to perform administration operations on ServiceBus entities.
public ServiceBusAdministrationClient (string fullyQualifiedNamespace, Azure.Core.TokenCredential credential);
new Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClient : string * Azure.Core.TokenCredential -> Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClient
Public Sub New (fullyQualifiedNamespace As String, credential As TokenCredential)
Parameters
- fullyQualifiedNamespace
- String
The fully qualified Service Bus namespace to connect to. This is likely to be similar to {yournamespace}.servicebus.windows.net
.
- credential
- TokenCredential
The Azure managed identity credential to use for authorization. Access controls may be specified by the Service Bus namespace or the requested Service Bus entity, depending on Azure configuration.
Applies to
ServiceBusAdministrationClient(String, ServiceBusAdministrationClientOptions)
Initializes a new ServiceBusAdministrationClient which can be used to perform administration operations on ServiceBus entities.
public ServiceBusAdministrationClient (string connectionString, Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClientOptions options);
new Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClient : string * Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClientOptions -> Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClient
Public Sub New (connectionString As String, options As ServiceBusAdministrationClientOptions)
Parameters
- connectionString
- String
Namespace connection string.
A set of options to apply when configuring the client.
Applies to
ServiceBusAdministrationClient(String, AzureNamedKeyCredential, ServiceBusAdministrationClientOptions)
Initializes a new ServiceBusAdministrationClient which can be used to perform administration operations on ServiceBus entities.
public ServiceBusAdministrationClient (string fullyQualifiedNamespace, Azure.AzureNamedKeyCredential credential, Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClientOptions options = default);
new Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClient : string * Azure.AzureNamedKeyCredential * Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClientOptions -> Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClient
Public Sub New (fullyQualifiedNamespace As String, credential As AzureNamedKeyCredential, Optional options As ServiceBusAdministrationClientOptions = Nothing)
Parameters
- fullyQualifiedNamespace
- String
The fully qualified Service Bus namespace to connect to. This is likely to be similar to {yournamespace}.servicebus.windows.net
.
- credential
- AzureNamedKeyCredential
The AzureNamedKeyCredential to use for authorization. Access controls may be specified by the Service Bus namespace or the requested Service Bus entity, depending on Azure configuration.
A set of options to apply when configuring the client.
Applies to
ServiceBusAdministrationClient(String, AzureSasCredential, ServiceBusAdministrationClientOptions)
Initializes a new ServiceBusAdministrationClient which can be used to perform administration operations on ServiceBus entities.
public ServiceBusAdministrationClient (string fullyQualifiedNamespace, Azure.AzureSasCredential credential, Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClientOptions options = default);
new Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClient : string * Azure.AzureSasCredential * Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClientOptions -> Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClient
Public Sub New (fullyQualifiedNamespace As String, credential As AzureSasCredential, Optional options As ServiceBusAdministrationClientOptions = Nothing)
Parameters
- fullyQualifiedNamespace
- String
The fully qualified Service Bus namespace to connect to. This is likely to be similar to {yournamespace}.servicebus.windows.net
.
- credential
- AzureSasCredential
The AzureNamedKeyCredential to use for authorization. Access controls may be specified by the Service Bus namespace or the requested Service Bus entity, depending on Azure configuration.
A set of options to apply when configuring the client.
Applies to
ServiceBusAdministrationClient(String, TokenCredential, ServiceBusAdministrationClientOptions)
Initializes a new ServiceBusAdministrationClient which can be used to perform administration operations on ServiceBus entities.
public ServiceBusAdministrationClient (string fullyQualifiedNamespace, Azure.Core.TokenCredential credential, Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClientOptions options);
new Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClient : string * Azure.Core.TokenCredential * Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClientOptions -> Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClient
Public Sub New (fullyQualifiedNamespace As String, credential As TokenCredential, options As ServiceBusAdministrationClientOptions)
Parameters
- fullyQualifiedNamespace
- String
The fully qualified Service Bus namespace to connect to. This is likely to be similar to {yournamespace}.servicebus.windows.net
.
- credential
- TokenCredential
The Azure managed identity credential to use for authorization. Access controls may be specified by the Service Bus namespace or the requested Service Bus entity, depending on Azure configuration.
A set of options to apply when configuring the client.