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