IsInRole Method
Collapse the table of content
Expand the table of content

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.

Namespace:  System.Security.Principal
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Function IsInRole ( _
	role As String _
) As Boolean

Parameters

role
Type: System.String
The name of the role for which to check membership.

Return Value

Type: System.Boolean
true if the current principal is a member of the specified role; otherwise, false.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft