Return the membership of the current principal in the specified role.
- role
- A member of the System.Security.Principal.WindowsBuiltInRole enumeration.
True if the current identity is a member of the specified role, false otherwise.
On POSIX compliant systems the WindowsBuiltInRole.Administrators group is mapped to the "root" group. All other groups will return false.
Namespace: System.Security.Principal
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0