Share via


ServiceRouteCollection-Klasse

The ServiceRouteCollection class represents a collection of ServiceRoute objects that represent all the service routes defined on a database.

Namespace:  Microsoft.SqlServer.Management.Smo.Broker
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public NotInheritable Class ServiceRouteCollection _
    Inherits SimpleObjectCollectionBase
'Usage
Dim instance As ServiceRouteCollection
public sealed class ServiceRouteCollection : SimpleObjectCollectionBase
public ref class ServiceRouteCollection sealed : public SimpleObjectCollectionBase
[<SealedAttribute>]
type ServiceRouteCollection =  
    class
        inherit SimpleObjectCollectionBase
    end
public final class ServiceRouteCollection extends SimpleObjectCollectionBase

Hinweise

A ServiceRouteCollection object can be used to gain access to a set of service routes. You can use the Item property to return a specific ServiceRoute object.

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Für Instanzelemente kann nicht sichergestellt werden, dass sie für Threads sicher sind.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.