ActivityManager.GetActivitiesForMe Method (DateTime, Int32)
Gets an ActivityEventsCollection object containing activity events, up to a specified maximum number, that have occurred after a specified DateTime and associated with ActivityType objects that represent activity types that are in the current user’s preferences.
Namespace: Microsoft.Office.Server.ActivityFeed
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Function GetActivitiesForMe ( _
minEventTime As DateTime, _
maxEvents As Integer _
) As ActivityEventsCollection
'Usage
Dim instance As ActivityManager
Dim minEventTime As DateTime
Dim maxEvents As Integer
Dim returnValue As ActivityEventsCollection
returnValue = instance.GetActivitiesForMe(minEventTime, _
maxEvents)
public ActivityEventsCollection GetActivitiesForMe(
DateTime minEventTime,
int maxEvents
)
Parameters
minEventTime
Type: System.DateTimeThe UTC DateTime after which events in the collection were published.
maxEvents
Type: System.Int32The maximum number of items in the collection.
Return Value
Type: Microsoft.Office.Server.ActivityFeed.ActivityEventsCollection