Condividi tramite


Classe BrokerServiceCollection

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

Spazio dei nomi:  Microsoft.SqlServer.Management.Smo.Broker
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class BrokerServiceCollection _
    Inherits SimpleObjectCollectionBase
'Utilizzo
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

Osservazioni

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

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Thread Safety

Tutti i membri pubblici static (Shared in Visual Basic) di questo tipo sono thread safe. I membri di istanza non hanno garanzia di essere thread safe.