Click or drag to resize

SanteDBClaimsPrincipalIsInRole Method

Determines whether the current principal belongs to the specified role.

Namespace: SanteDB.Core.Security.Claims
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public bool IsInRole(
	string role
)

Parameters

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

Return Value

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

Implements

IPrincipalIsInRole(String)
See Also