private static extern int navigator_set_badge(NavigatorBadge badge);
public static bool SetBadge(NavigatorBadge badge) { if (!badge.IsValidValue()) { throw new ArgumentException("not a valid application badge.", "badge"); } Util.GetBPSOrException(); return navigator_set_badge(badge) == BPS.BPS_SUCCESS; }