Dela via


ServiceRouteCollection.Item Property (String)

Gets a ServiceRoute object in the collection by name.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    name As String _
) As ServiceRoute
    Get
'Usage
Dim instance As ServiceRouteCollection
Dim name As String
Dim value As ServiceRoute

value = instance(name)
public ServiceRoute this[
    string name
] { get; }
public:
property ServiceRoute^ default[String^ name] {
    ServiceRoute^ get (String^ name);
}
member Item : ServiceRoute
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

Type: Microsoft.SqlServer.Management.Smo.Broker.ServiceRoute
A ServiceRoute object value that represents the service route.