Примечание.
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
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 поддерживает использование индексированных свойств, но не объявление новых.
Параметры
- name
Тип: System.String
A String value that specifies the name of the ServerRole object in the ServerRoleCollection collection.
Значение свойства
Тип: Microsoft.SqlServer.Management.Smo.ServerRole
A ServerRole object value that represents the server role.