FindUsersInRole Method

MySQL Connector/Net

Finds the users in role.

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

Syntax

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

Parameters

rolename
Type: System..::.String
The rolename.
usernameToMatch
Type: System..::.String
The username to match.

Return Value

A string array containing the names of all the users where the user name matches usernameToMatch and the user is a member of the specified role.

See Also