Compartilhar via


Método CredentialCollection.ItemById

Extracts a member from the CredentialCollection collection by using a unique identifier.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Function ItemById ( _
    id As Integer _
) As Credential
'Uso
Dim instance As CredentialCollection 
Dim id As Integer 
Dim returnValue As Credential 

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

Parâmetros

Valor de retorno

Tipo: Microsoft.SqlServer.Management.Smo.Credential
A Credential object that has the specified ID value.

Exemplos

Usando coleções

Consulte também

Referência

CredentialCollection Classe

Namespace Microsoft.SqlServer.Management.Smo