Proprietà Item (String)
Gets a ServerRole 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 ServerRole
Get
'Utilizzo
Dim instance As ServerRoleCollection
Dim name As String
Dim value As ServerRole
value = instance(name)
public ServerRole this[
string name
] { get; }
public:
property ServerRole^ default[String^ name] {
ServerRole^ get (String^ name);
}
member Item : ServerRole
JScript supporta l'utilizzo di proprietà indicizzate, ma non la dichiarazione di nuove proprietà.
Parametri
- name
Tipo: System. . :: . .String
A String value that specifies the name of the ServerRole object in the ServerRoleCollection collection.
Valore proprietà
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ServerRole
A ServerRole object value that represents the server role.
Vedere anche