SimpleRoleProvider.IsUserInRole(String, String) Method

Definition

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.

Applies to