Gets a list of notifications sent to the provided user in the specified portal.

Namespace: DotNetNuke.Services.Social.Notifications
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
IList<Notification> GetNotifications(
	int userId,
	int portalId,
	int afterNotificationId,
	int numberOfRecords
)
Visual Basic
Function GetNotifications ( 
	userId As Integer,
	portalId As Integer,
	afterNotificationId As Integer,
	numberOfRecords As Integer
) As IList(Of Notification)

Parameters

userId
Type: System..::..Int32
The user identifier.
portalId
Type: System..::..Int32
The portal identifier.
afterNotificationId
Type: System..::..Int32
The notification identifier of the last notification displayed. Use -1 to start from the beggining of the list.
numberOfRecords
Type: System..::..Int32
The number of results to retrieve.

Return Value

The filtered list of notifications sent to the provided user in the specified portal.

Examples

For example, if we have the following ordered notification identifiers: 4, 6, 2, 12, 45, and we pass 2 as the afterNotificationId and 2 as the numberOfRecords, the method will return the notifications 12 and 45.

See Also