Compartir a través de


ServerRoleCollection.Item Propiedad (Int32)

Gets a ServerRole object in the collection by index number.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public ReadOnly Default Property Item ( _
    index As Integer _
) As ServerRole 
    Get
'Uso
Dim instance As ServerRoleCollection 
Dim index As Integer 
Dim value As ServerRole 

value = instance(index)
public ServerRole this[
    int index
] { get; }
public:
property ServerRole^ default[int index] {
    ServerRole^ get (int index);
}
member Item : ServerRole
JScript admite el uso de propiedades indizadas, pero no la declaración de otras nuevas.

Parámetros

Valor de la propiedad

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

Ejemplos

Usar colecciones

Vea también

Referencia

ServerRoleCollection Clase

Sobrecarga de Item

Espacio de nombres Microsoft.SqlServer.Management.Smo