CredentialCollection.ItemById(Int32) CredentialCollection.ItemById(Int32) CredentialCollection.ItemById(Int32) Method

Definition

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

public:
 Microsoft::SqlServer::Management::Smo::Credential ^ ItemById(int id);
public Microsoft.SqlServer.Management.Smo.Credential ItemById (int id);
Public Function ItemById (id As Integer) As Credential
Parameters
id
Int32 Int32 Int32

An Int32 value that uniquely identifies the Credential object that is a member of the CredentialCollection collection.

Returns

A Credential object that has the specified ID value.

Examples

Using Collections

Applies to