Compartir a través de


BrokerServiceCollection Clase

The BrokerServiceCollection class represents a collection of BrokerService objects that represent all the Service Broker services defined on a database.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Broker
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public NotInheritable Class BrokerServiceCollection _
    Inherits SimpleObjectCollectionBase
'Uso
Dim instance As BrokerServiceCollection
public sealed class BrokerServiceCollection : SimpleObjectCollectionBase
public ref class BrokerServiceCollection sealed : public SimpleObjectCollectionBase
[<SealedAttribute>]
type BrokerServiceCollection =  
    class
        inherit SimpleObjectCollectionBase
    end
public final class BrokerServiceCollection extends SimpleObjectCollectionBase

Notas

A BrokerServiceCollection object can be used to gain access to a set of Service Broker services. You can use the Item property to return a specific BrokerService object.

Thread Safety

Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Ejemplos

Usar colecciones

Seguridad para subprocesos

Todos los miembros públicos static (Shared en Visual Basic) de este tipo son seguros para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.