Метод 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.