Udostępnij za pośrednictwem


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

Pobiera ServiceContract obiektu kolekcja według numeru indeksu.

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

Składnia

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

value = instance(index)
public ServiceContract this[
    int index
] { get; }
public:
property ServiceContract^ default[int index] {
    ServiceContract^ get (int index);
}
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.