IsUserInRole Method

MySQL Connector/Net

Determines whether [is user in role] [the specified username].

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

Syntax

C#
public override bool IsUserInRole(
	string username,
	string rolename
)
Visual Basic (Declaration)
Public Overrides Function IsUserInRole ( _
	username As String, _
	rolename As String _
) As Boolean
Visual C++
public:
virtual bool IsUserInRole(
	String^ username, 
	String^ rolename
) override

Parameters

username
Type: System..::.String
The username.
rolename
Type: System..::.String
The rolename.

Return Value

true if [is user in role] [the specified username]; otherwise, false.

See Also