Metodo User.EnumRoles
Enumerates a list of roles of which the database user is a member.
Spazio dei nomi Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Sintassi
'Dichiarazione
Public Function EnumRoles As StringCollection
'Utilizzo
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
Valore restituito
Tipo: System.Collections.Specialized.StringCollection
A StringCollection system object value that specifies the roles of which the database is a member.
Esempi
Gestione di utenti, ruoli e account di accesso
Vedere anche
Riferimento
Spazio dei nomi Microsoft.SqlServer.Management.Smo