Compartilhar via


Propriedade do RDL Item (String)

Gets a ServerRole object in the collection by name.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public ReadOnly Default Property Item ( _
    name As String _
) As ServerRole
    Get
'Uso
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 dá suporte ao uso de propriedades indexadas, mas não à declaração de propriedades novas.

Parâmetros

Valor da propriedade

Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ServerRole
A ServerRole object value that represents the server role.