共用方式為


ActivityManager.GetActivitiesByUser Method (UserProfile, Int32)

Gets an ActivityEventsCollection object containing activity events, up to a specified maximum number, 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, _
    maxEvents As Integer _
) As ActivityEventsCollection
'Usage
Dim instance As ActivityManager
Dim userProfile As UserProfile
Dim maxEvents As Integer
Dim returnValue As ActivityEventsCollection

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

Parameters

  • 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