Метод User.EnumRoles

Enumerates a list of roles of which the database user is a member.

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

Синтаксис

'Декларация
Public Function EnumRoles As StringCollection
'Применение
Dim instance As User 
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 specifies the roles of which the database is a member.

Примеры

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

См. также

Справочник

User Класс

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

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

Участники (компонент Database Engine)

CREATE USER (Transact-SQL)