| SimpleMappingRoleProviderIsUserInRole Method |
Gets a value indicating whether the specified user is in the specified role for the configured applicationName.
Namespace:
Galactic.Web.Security.SimpleMapping
Assembly:
Galactic.Web.Security.SimpleMapping (in Galactic.Web.Security.SimpleMapping.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public override bool IsUserInRole(
string username,
string roleName
)
Public Overrides Function IsUserInRole (
username As String,
roleName As String
) As Boolean
public:
virtual bool IsUserInRole(
String^ username,
String^ roleName
) override
abstract IsUserInRole :
username : string *
roleName : string -> bool
override IsUserInRole :
username : string *
roleName : string -> bool
Parameters
- username
- Type: SystemString
The user name to search for. - roleName
- Type: SystemString
The role to search in.
Return Value
Type:
Booleantrue if the specified user is in the specified role for the configured applicationName; otherwise, false.
See Also