SimpleRoleProvider.IsUserInRole(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a value that indicates whether the specified user is in the specified role.
public override bool IsUserInRole (string username, string roleName);
override this.IsUserInRole : string * string -> bool
Public Overrides Function IsUserInRole (username As String, roleName As String) As Boolean
Parameters
- username
- String
The user name.
- roleName
- String
The name of the role.
Returns
true if the user is in the role; otherwise, false.