IPrincipal.IsInRole Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Determines whether the current principal belongs to the specified role.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- role
- Type: System.String
The name of the role for which to check membership.
Return Value
Type: System.Booleantrue if the current principal is a member of the specified role; otherwise, false.
Show: