Udostępnij przez


Metoda ServerRoleCollection.ItemById

Wyodrębnia element członkowski z ServerRoleCollection przy użyciu kolekcja identyfikator unikatowy, zdefiniowanych przez system.

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

Składnia

'Deklaracja
Public Function ItemById ( _
    id As Integer _
) As ServerRole
'Użycie
Dim instance As ServerRoleCollection
Dim id As Integer
Dim returnValue As ServerRole

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

Parametry

Wartość zwracana

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