Поделиться через


Пространство имен Microsoft.SqlServer.Management.Smo.Broker

The [Microsoft.SqlServer.Management.Smo.Broker] namespace contains classes that represent the Компонент Service Broker items that you can manage by using SQL Server Management Objects.

After a connection to an instance of SQL Server has been established by using the Server object variable, you can use the objects in the Microsoft.SqlServer.Management.Smo.Broker namespace to manage the Компонент Service Broker.

The [Microsoft.SqlServer.Management.Smo.Broker] namespace resides in the Microsoft.SqlServer.Smo.dll assembly file. Also, some of the enumeration classes are in the Microsoft.SqlServer.ServiceBrokerEnum.dll assembly file. You will have to import both files to access the classes in the [Microsoft.SqlServer.Management.Smo.Broker] namespace.

By using the [Microsoft.SqlServer.Management.Smo.Broker] namespace you can do the following:

  • View and modify Компонент Service Broker settings.

  • Create, alter, and drop Компонент Service Broker objects.

  • Manage Компонент Service Broker queues, routes, message types, contracts, service bindings, and priorities.

  • Set up, manage, and handle Компонент Service Broker events.

Классы

  Класс Описание
Открытый класс BrokerObjectBase The BrokerObjectBase class is a base class that is inherited by other Компонент Service Broker classes.
Открытый класс BrokerPriority The BrokerPriority object represents a priority level and the set of criteria for determining which Компонент Service Broker conversations to assign the priority level.
Открытый класс BrokerPriorityCollection The BrokerPriorityCollection class represents a collection of BrokerPriority objects that represent all the conversation priorities defined on a database.
Открытый класс BrokerPriorityExtender Exposes Компонент Service Broker conversation priority methods and properties in addition to the methods and properties of the BrokerPriority object.
Открытый класс BrokerService The BrokerService object represents a Компонент Service Broker service, which is an addressable endpoint for conversations.
Открытый класс BrokerServiceCollection The BrokerServiceCollection class represents a collection of BrokerService objects that represent all the Компонент Service Broker services defined on a database.
Открытый класс BrokerServiceEvents The BrokerServiceEvents object represents the settings required for Компонент Service Broker service event notification.
Открытый класс BrokerServiceExtender Exposes Компонент Service Broker service methods and properties in addition to the methods and properties of the BrokerService object.
Открытый класс MessageType The MessageType object represents a message type that defines the content of messages.
Открытый класс MessageTypeCollection The MessageTypeCollection class represents a collection of MessageType objects that represent all the message types defined on a database.
Открытый класс MessageTypeEvents The MessageTypeEvents object represents the settings required for SQL Server message type event notification.
Открытый класс MessageTypeExtender Exposes Компонент Service Broker message type methods and properties in addition to the methods and properties of the MessageType object.
Открытый класс MessageTypeMapping The MessageTypeMapping object represents a relationship between message types and a contract.
Открытый класс MessageTypeMappingCollection The MessageTypeMappingCollection class represents a collection of MessageTypeMapping objects that represent all the message types defined on a contract.
Открытый класс RemoteServiceBinding The RemoteServiceBinding object represents the settings that Компонент Service Broker uses for security and authentication when communicating with a remote service.
Открытый класс RemoteServiceBindingCollection The RemoteServiceBindingCollection class represents a collection of RemoteServiceBinding objects that represent all the remote service bindings defined on a database.
Открытый класс RemoteServiceBindingEvents The RemoteServiceBindingEvents object represents the settings required for Microsoft SQL Server remote service binding event notification.
Открытый класс RemoteServiceBindingExtender Exposes Компонент Service Broker remote service binding methods and properties in addition to the methods and properties of the RemoteServiceBinding object.
Открытый класс ServiceBroker The ServiceBroker object represents an implementation of Компонент Service Broker on a Microsoft SQL Server database.
Открытый класс ServiceContract The ServiceContract objects represents a contract that specifies the direction and type of messages in a conversation.
Открытый класс ServiceContractCollection The ServiceContractCollection class represents a collection of ServiceContract objects that represent all the service contracts defined on a database.
Открытый класс ServiceContractEvents The ServiceContractEvents object represents the settings required for SQL Server service contract event notification.
Открытый класс ServiceContractExtender Exposes Компонент Service Broker contract methods and properties in addition to the methods and properties of the ServiceContract object.
Открытый класс ServiceContractMapping The ServiceContractMapping class represents the service contracts that are associated with the Компонент Service Broker service.
Открытый класс ServiceContractMappingCollection The ServiceContractMappingCollection class represents a collection of ServiceContractMapping objects that represent all the message types defined on a contract.
Открытый класс ServiceQueue The ServiceQueue object represents a queue that stores Service Broker messages.
Открытый класс ServiceQueueCollection The ServiceQueueCollection class represents a collection of ServiceQueue objects that represent all the service queues defined on a database.
Открытый класс ServiceQueueEvents The ServiceQueueEvents object represents the settings required for SQL Server service queue event notification.
Открытый класс ServiceQueueExtender Exposes Компонент Service Broker queue methods and properties in addition to the methods and properties of the ServiceQueue object.
Открытый класс ServiceRoute The ServiceRoute object represents a Компонент Service Broker route that contains the location information for the service and the database on which it is defined.
Открытый класс ServiceRouteCollection The ServiceRouteCollection class represents a collection of ServiceRoute objects that represent all the service routes defined on a database.
Открытый класс ServiceRouteEvents The ServiceRouteEvents object represents the settings required for SQL Server service route event notification.
Открытый класс ServiceRouteExtender Exposes Компонент Service Broker route methods and properties in addition to the methods and properties of the ServiceRoute object.

Перечисления

  Перечисление Описание
Открытое перечисление DialogEndPointState The DialogEndPointState enumeration contains constant values that specify the state of the endpoint at the service.
Открытое перечисление DialogType The DialogType enumeration contains constant values that specify the type of dialog between Компонент Service Broker endpoints.
Открытое перечисление MessageSource The MessageSource enumeration contains constant values that specify which endpoint sent the message.
Открытое перечисление MessageTypeValidation The MessageTypeValidation enumeration contains constant values that specify the types of validation performed on the Компонент Service Broker message body.