Udostępnij przez


Właściwość ServiceContractCollection.Item (String)

Pobiera ServiceContract obiektu kolekcja według nazwy.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo.Broker
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
Public ReadOnly Default Property Item ( _
    name As String _
) As ServiceContract
    Get
'Użycie
Dim instance As ServiceContractCollection
Dim name As String
Dim value As ServiceContract

value = instance(name)
public ServiceContract this[
    string name
] { get; }
public:
property ServiceContract^ default[String^ name] {
    ServiceContract^ get (String^ name);
}
member Item : ServiceContract
Język JScript obsługuje używanie indeksowanych właściwości, ale nie obsługuje deklarowania nowych.

Parametry

Wartość właściwości

Typ: Microsoft.SqlServer.Management.Smo.Broker.ServiceContract
A ServiceContract wartość obiektu, który stanowi kontrakt usługa.