Roles.IsUserInRole Method
.NET Framework (current version)
Gets a value indicating whether a user is in the specified role.
Assembly: System.Web (in System.Web.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | IsUserInRole(String) | Gets a value indicating whether the currently logged-on user is in the specified role. The API is only intended to be called within the context of an ASP.NET request thread, and in that sanctioned use case it is thread-safe. |
![]() ![]() | IsUserInRole(String, String) | Gets a value indicating whether the specified user is in the specified role. The API is only intended to be called within the context of an ASP.NET request thread, and in that sanctioned use case it is thread-safe. |
Show:

