Método User.EnumRoles
Enumerates a list of roles of which the database user is a member.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
Public Function EnumRoles As StringCollection
'Uso
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
Valor de retorno
Tipo: System.Collections.Specialized.StringCollection
A StringCollection system object value that specifies the roles of which the database is a member.
Exemplos
Gerenciando usuários, funções e logons
Consulte também
Referência
Namespace Microsoft.SqlServer.Management.Smo