ActivityManager.GetActivitiesByUser method (String, DateTime, Int32)

Gets an ActivityEventsCollection object containing activity events, up to a specified maximum number, published by the user with the specified name after a specified time.

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

Syntax

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

returnValue = instance.GetActivitiesByUser(publisher, _
    minEventTime, maxEvents)
public ActivityEventsCollection GetActivitiesByUser(
    string publisher,
    DateTime minEventTime,
    int maxEvents
)

Parameters

  • publisher
    Type: System.String

    A string that represents the name of the entity that has published the events in the collection.

  • minEventTime
    Type: System.DateTime

    The UTC DateTime after which all activity events in the collection have been published.

  • maxEvents
    Type: System.Int32

    The maximum number of items 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