ActivityManager Constructor (UserProfile, SPServiceContext)
Creates an instance of the ActivityManager class from the specified SPServiceContext and for the specified user, which must be the current user.
Namespace: Microsoft.Office.Server.ActivityFeed
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Sub New ( _
userProfile As UserProfile, _
serviceContext As SPServiceContext _
)
'Usage
Dim userProfile As UserProfile
Dim serviceContext As SPServiceContext
Dim instance As New ActivityManager(userProfile, _
serviceContext)
public ActivityManager(
UserProfile userProfile,
SPServiceContext serviceContext
)
Parameters
userProfile
Type: Microsoft.Office.Server.UserProfiles.UserProfileThe UserProfile object. This value must be identical to the UserProfile object that represents the current user.
serviceContext
Type: Microsoft.SharePoint.SPServiceContextThe SPServiceContext that will be the default context for this ActivityManager.