Metoda ServiceContractCollection.ItemById
Wyodrębnia element członkowski z ServiceContractCollection przy użyciu kolekcja identyfikator unikatowy, zdefiniowanych przez system.
Przestrzeń nazw: Microsoft.SqlServer.Management.Smo.Broker
Zestaw: Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)
Składnia
'Deklaracja
Public Function ItemById ( _
id As Integer _
) As ServiceContract
'Użycie
Dim instance As ServiceContractCollection
Dim id As Integer
Dim returnValue As ServiceContract
returnValue = instance.ItemById(id)
public ServiceContract ItemById(
int id
)
public:
ServiceContract^ ItemById(
int id
)
member ItemById :
id:int -> ServiceContract
public function ItemById(
id : int
) : ServiceContract
Parametry
- id
Typ: System.Int32
Int32 Wartość, która jednoznacznie identyfikuje ServiceContract obiektu jest element członkowski z ServiceContractCollection kolekcja.
Wartość zwracana
Typ: Microsoft.SqlServer.Management.Smo.Broker.ServiceContract
A ServiceContract obiekt, który ma określoną wartość Identyfikatora.
Zobacz także