![]()
true if the specified user name is in the specified role; otherwise, false.
The SqlRoleProvider.IsUserInRole(string, string) method is called by the System.Web.Security.Roles class and the System.Security.Principal.IPrincipal.IsInRole(string) method of the System.Web.UI.Page.User property to determine whether a user is associated with a role in the SQL Server database specified in the ASP.NET application's configuration file (Web.config).