Share via


ServiceBroker 類別

The ServiceBroker object represents an implementation of Service Broker on a Microsoft SQL Server database.

命名空間:  Microsoft.SqlServer.Management.Smo.Broker
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public NotInheritable Class ServiceBroker _
    Inherits SqlSmoObject
'用途
Dim instance As ServiceBroker
public sealed class ServiceBroker : SqlSmoObject
public ref class ServiceBroker sealed : public SqlSmoObject
[<SealedAttribute>]
type ServiceBroker =  
    class
        inherit SqlSmoObject
    end
public final class ServiceBroker extends SqlSmoObject

備註

The ServiceBroker object is the top-level class under which all the Service Broker functionality resides. A Service Broker implementation (services, queues, and message types) is required for each database that is participating in the distributed messaging application.

To get ServiceBroker object properties, users can be a member of the public fixed server role.

To set ServiceBroker object properties, users must be a member of the db_ddladmin or db_owner fixed database roles, or be a member of the sysadmin fixed server role. The user also requires REFERENCES permission on the specified schema.

Thread Safety

這種類型的任何公用靜態 (在 Microsoft Visual Basic 中則為 Shared) 成員都可用於多執行緒作業。並不是所有的執行個體成員都保證可以用於所有的執行緒。

繼承階層

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectBase
    Microsoft.SqlServer.Management.Smo. . :: . .SqlSmoObject
      Microsoft.SqlServer.Management.Smo.Broker..::..ServiceBroker

執行緒安全性

這個類型的任何公用static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員都可以是安全執行緒。