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

Gets a ServerRole object in the collection by name.

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

Синтаксис

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

Параметры

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

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

Примеры

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

См. также

Справочник

ServerRoleCollection Класс

Перегрузка Item

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