WindowsPrincipal::IsInRole Method
Determines whether the current principal belongs to a specified Windows user group.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | IsInRole(Int32) | Determines whether the current principal belongs to the Windows user group with the specified relative identifier (RID). |
![]() | IsInRole(SecurityIdentifier^) | Determines whether the current principal belongs to the Windows user group with the specified security identifier (SID). |
![]() | IsInRole(String^) | Determines whether the current principal belongs to the Windows user group with the specified name.(Overrides ClaimsPrincipal::IsInRole(String^).) |
![]() | IsInRole(WindowsBuiltInRole) | Determines whether the current principal belongs to the Windows user group with the specified WindowsBuiltInRole. |
There are four overloads for this method. For performance reasons, the IsInRole(SecurityIdentifier^) overload is strongly recommended.
Important |
|---|
The IsInRole method is not supported on Windows 98 or Windows Millennium Edition. |

