BrokerService 建構函式 (ServiceBroker, String)
初始化位於指定的 Service Broker 實作上且具有指定的名稱之 BrokerService 類別的新執行個體。
命名空間: Microsoft.SqlServer.Management.Smo.Broker
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub New ( _
serviceBroker As ServiceBroker, _
name As String _
)
'用途
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
)
參數
- serviceBroker
型別:Microsoft.SqlServer.Management.Smo.Broker. . :: . .ServiceBroker
ServiceBroker 物件值,指定資料庫上的 Service Broker 實作。
- name
型別:System. . :: . .String
指定服務名稱的 String 值。