ActivityManager.GetActivitiesByUser Method (UserProfile)
Gets an ActivityEventsCollection object containing all activity events published by the specified user.
Namespace: Microsoft.Office.Server.ActivityFeed
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Function GetActivitiesByUser ( _
userProfile As UserProfile _
) As ActivityEventsCollection
'Usage
Dim instance As ActivityManager
Dim userProfile As UserProfile
Dim returnValue As ActivityEventsCollection
returnValue = instance.GetActivitiesByUser(userProfile)
public ActivityEventsCollection GetActivitiesByUser(
UserProfile userProfile
)
Parameters
userProfile
Type: Microsoft.Office.Server.UserProfiles.UserProfileThe UserProfile representing the user who has published the events in the collection.
Return Value
Type: Microsoft.Office.Server.ActivityFeed.ActivityEventsCollection