public System.bool IsActiveRole {get;}
Returns true if a role is currently active or false if not.
IsActiveRole should always be called first before calling ActiveRole.
public System.bool IsActiveRole {get;}
if (api.Roles.IsActiveRole) { Role currentRole = api.Roles.ActiveRole; } else { Role newRole = new Role("ReportUser"); newRole.Activate(); }