Поделиться через


Метод DatabaseRole.EnumRoles

Returns a list of the roles that the referenced database role is a member of.

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

Синтаксис

'Декларация
Public Function EnumRoles As StringCollection
'Применение
Dim instance As DatabaseRole 
Dim returnValue As StringCollection 

returnValue = instance.EnumRoles()
public StringCollection EnumRoles()
public:
StringCollection^ EnumRoles()
member EnumRoles : unit -> StringCollection
public function EnumRoles() : StringCollection

Возвращаемое значение

Тип: System.Collections.Specialized.StringCollection
A StringCollection system object value that contains the roles that the referenced database role is a member of.

Примеры

Создание скриптов

См. также

Справочник

DatabaseRole Класс

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

Другие ресурсы

Управление пользователями, ролями и именами входа

Роли уровня базы данных

CREATE ROLE (Transact-SQL)