GetRolesForUser Method

MySQL Connector/Net

Gets a list of the roles that a specified user is in for the configured applicationName.

Namespace:  MySql.Web.Security
Assembly:  MySql.Web (in MySql.Web.dll) Version: 6.2.2.0

Syntax

C#
public override string[] GetRolesForUser(
	string username
)
Visual Basic (Declaration)
Public Overrides Function GetRolesForUser ( _
	username As String _
) As String()
Visual C++
public:
virtual array<String^>^ GetRolesForUser(
	String^ username
) override

Parameters

username
Type: System..::.String
The user to return a list of roles for.

Return Value

A string array containing the names of all the roles that the specified user is in for the configured applicationName.

See Also