ActivityManager.GetActivitiesByUser method (UserProfile, DateTime, Int32)

Gets an ActivityEventsCollection object containing all activity events, up to a specified maximum number, published by the specified user that have been published after the specified DateTime.

Namespace:  Microsoft.Office.Server.ActivityFeed
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Function GetActivitiesByUser ( _
    userProfile As UserProfile, _
    minEventTime As DateTime, _
    maxEvents As Integer _
) As ActivityEventsCollection
'Usage
Dim instance As ActivityManager
Dim userProfile As UserProfile
Dim minEventTime As DateTime
Dim maxEvents As Integer
Dim returnValue As ActivityEventsCollection

returnValue = instance.GetActivitiesByUser(userProfile, _
    minEventTime, maxEvents)
public ActivityEventsCollection GetActivitiesByUser(
    UserProfile userProfile,
    DateTime minEventTime,
    int maxEvents
)

Parameters

  • minEventTime
    Type: System.DateTime

    The UTC DateTime after which the events in the collection were published.

  • maxEvents
    Type: System.Int32

    The maximum number of events in the collection.

Return value

Type: Microsoft.Office.Server.ActivityFeed.ActivityEventsCollection

See also

Reference

ActivityManager class

ActivityManager members

GetActivitiesByUser overload

Microsoft.Office.Server.ActivityFeed namespace