Partager via


Méthode EnumRoles

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Function EnumRoles As StringCollection
'Utilisation
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

Valeur de retour

Type : System.Collections.Specialized. . :: . .StringCollection
A StringCollection system object value that specifies the roles of which the database is a member.