Share via


Propriété Item (String)

Gets a Credential object in the CredentialCollection collection by name.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public ReadOnly Default Property Item ( _
    name As String _
) As Credential
    Get
'Utilisation
Dim instance As CredentialCollection
Dim name As String
Dim value As Credential

value = instance(name)
public Credential this[
    string name
] { get; }
public:
property Credential^ default[String^ name] {
    Credential^ get (String^ name);
}
member Item : Credential
JScript prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.

Paramètres

Valeur de propriété

Type : Microsoft.SqlServer.Management.Smo. . :: . .Credential
A Credential object value that represents the credential.