GetRolesForUser Method

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
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.8.4.0

Syntax

C#
public override string[] GetRolesForUser(
	string username
)
Visual Basic
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