Determines whether the current principal belongs to the specified role.
Syntax
Parameters
- role
-
The name of the role for which to check membership.
Returns
true if the current principal is a member of the specified role; otherwise, false.
Remarks
Requirements
Namespace: System.Security.Principal
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0