Creates a new notification and sets is sender as the portal administrator.
Namespace: DotNetNuke.Services.Social.NotificationsAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
void SendNotification( Notification notification, int portalId, IList<RoleInfo> roles, IList<UserInfo> users ) |
Visual Basic |
---|
Sub SendNotification ( notification As Notification, portalId As Integer, roles As IList(Of RoleInfo), users As IList(Of UserInfo) ) |
Parameters
- notification
- Type: DotNetNuke.Services.Social.Notifications..::..Notification
The notification
- portalId
- Type: System..::..Int32
The portalId
- roles
- Type: System.Collections.Generic..::..IList<(Of <(<'RoleInfo>)>)>
The list of roles to send the notification to. Leave it as null to send only to individual users.
- users
- Type: System.Collections.Generic..::..IList<(Of <(<'UserInfo>)>)>
The list of users to send the notification to. Leave it as null to send only to roles.