Compartilhar via


Construtor BrokerService (ServiceBroker, String)

Inicializa uma nova instância da classe BrokerService na implementação especificada do Service Broker e com o nome especificado.

Namespace:  Microsoft.SqlServer.Management.Smo.Broker
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Sub New ( _
    serviceBroker As ServiceBroker, _
    name As String _
)
'Uso
Dim serviceBroker As ServiceBroker
Dim name As String

Dim instance As New BrokerService(serviceBroker, _
    name)
public BrokerService(
    ServiceBroker serviceBroker,
    string name
)
public:
BrokerService(
    ServiceBroker^ serviceBroker, 
    String^ name
)
new : 
        serviceBroker:ServiceBroker * 
        name:string -> BrokerService
public function BrokerService(
    serviceBroker : ServiceBroker, 
    name : String
)

Parâmetros