Udostępnij za pośrednictwem


Metoda MessageTypeCollection.ItemById

Wyodrębnia element członkowski z MessageTypeCollection 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 MessageType
'Użycie
Dim instance As MessageTypeCollection
Dim id As Integer
Dim returnValue As MessageType

returnValue = instance.ItemById(id)
public MessageType ItemById(
    int id
)
public:
MessageType^ ItemById(
    int id
)
member ItemById : 
        id:int -> MessageType 
public function ItemById(
    id : int
) : MessageType

Parametry

Wartość zwracana

Typ: Microsoft.SqlServer.Management.Smo.Broker.MessageType
A MessageType obiekt, który ma określoną wartość Identyfikatora.