0
我正在使用DNN 6.2並嘗試創建通知,但由於我是新手,所以不太瞭解API。DNN通知API
文檔建議以下
NotificationsController.Instance.SendNotification(
notification,
PortalSettings.PortalId,
new List<RoleInfo>(), // Pass here the list of roles or null if the notification is going to be sent to individual users only.
new List<UserInfo>(), // Pass here the list of users or null if the notification is going to be sent to roles only.
); // There is an overload that doesn't receive this parameter and uses Admin as sender.
我已經定義並與用戶id填充列表
private List<string> listOfFriends = new List<string>();
所以我雖然下面將工作
NotificationsController.Instance.SendNotification(notification, PortalSettings.PortalId,"", listOfFriends);
但我出現錯誤'有一些無效的論點。
我在做什麼錯?