Determines whether the current principal belongs to a specified Windows user group.
There are four overloads for this method. For performance reasons, the IsInRole(SecurityIdentifier) overload is strongly recommended.
The IsInRole method is not supported on Windows 98 or Windows Millennium Edition.