Condividi tramite


Proprietà Item (String)

Gets a DatabaseRole object in the collection by name.

Spazio dei nomi:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public ReadOnly Default Property Item ( _
    name As String _
) As DatabaseRole
    Get
'Utilizzo
Dim instance As DatabaseRoleCollection
Dim name As String
Dim value As DatabaseRole

value = instance(name)
public DatabaseRole this[
    string name
] { get; }
public:
property DatabaseRole^ default[String^ name] {
    DatabaseRole^ get (String^ name);
}
member Item : DatabaseRole
JScript supporta l'utilizzo di proprietà indicizzate, ma non la dichiarazione di nuove proprietà.

Parametri

Valore proprietà

Tipo: Microsoft.SqlServer.Management.Smo. . :: . .DatabaseRole
A DatabaseRole object value that represents the database role.