Condividi tramite


BrokerService Constructor (ServiceBroker, String)

Initializes a new instance of the BrokerService class on the specified implementation of Service Broker and with the specified name.

Spazio dei nomi: Microsoft.SqlServer.Management.Smo.Broker
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintassi

'Dichiarazione
Public Sub New ( _
    serviceBroker As ServiceBroker, _
    name As String _
)
public BrokerService (
    ServiceBroker serviceBroker,
    string name
)
public:
BrokerService (
    ServiceBroker^ serviceBroker, 
    String^ name
)
public BrokerService (
    ServiceBroker serviceBroker, 
    String name
)
public function BrokerService (
    serviceBroker : ServiceBroker, 
    name : String
)

Parametri

  • serviceBroker
    A ServiceBroker object value that specifies the implementation of Service Broker on a database.
  • name
    A String value that specifies the name of the service.

Osservazioni

Questo spazio dei nomi, classe o membro è supportato solo nella versione 2.0 di Microsoft .NET Framework.

Esempio

Readme_ServiceBrokerConfiguration

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

BrokerService Class
BrokerService Members
Microsoft.SqlServer.Management.Smo.Broker Namespace

Altre risorse

Service Broker Programming
Managing Service Broker
Introduzione a Service Broker