Свойство ServerRoleCollection.Item (Int32)

Gets a ServerRole object in the collection by index number.

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public ReadOnly Default Property Item ( _
    index As Integer _
) As ServerRole 
    Get
'Применение
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 поддерживает использование индексированных свойств, но не объявление новых.

Параметры

Значение свойства

Тип: Microsoft.SqlServer.Management.Smo.ServerRole
A ServerRole object value that represents the server role.

Примеры

Использование коллекций

См. также

Справочник

ServerRoleCollection Класс

Перегрузка Item

Пространство имен Microsoft.SqlServer.Management.Smo