Partager via


BrokerService Constructor (ServiceBroker, String)

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

Espace de noms: Microsoft.SqlServer.Management.Smo.Broker
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntaxe

'Déclaration
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
)

Paramètres

  • 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.

Notes

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.

Exemple

Readme_ServiceBrokerConfiguration

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

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

Autres ressources

Service Broker Programming
Managing Service Broker
Présentation de Service Broker