Partager via


Propriété ApplicationRoleCollection.Item (String)

Gets an ApplicationRole object in the 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 ApplicationRole 
    Get
'Utilisation
Dim instance As ApplicationRoleCollection 
Dim name As String 
Dim value As ApplicationRole 

value = instance(name)
public ApplicationRole this[
    string name
] { get; }
public:
property ApplicationRole^ default[String^ name] {
    ApplicationRole^ get (String^ name);
}
member Item : ApplicationRole
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.ApplicationRole
An ApplicationRole object value that represents the application role.

Exemples

Utilisation de collections

Voir aussi

Référence

ApplicationRoleCollection Classe

Surcharge Item

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Rôles d'applications