FindUsersInRole Method

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
Finds the users in role.

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

Syntax

C#
public override string[] FindUsersInRole(
	string rolename,
	string usernameToMatch
)
Visual Basic
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