ActivityEvent.CreateActivityEvent method

Static method that creates an ActivityEvent object and associates it with an ActivityType object.

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

public static ActivityEvent CreateActivityEvent(
	ActivityManager objManager,
	long activityTypeId,
	Entity owner,
	Entity publisher
)

Parameters

objManager
Type: Microsoft.Office.Server.ActivityFeed.ActivityManager

The ActivityManager object that is responsible for gathering this ActivityEvent.

activityTypeId
Type: System.Int64

The identifier of the ActivityType with which this ActivityEvent is associated. This type defines the display formatting of the event.

owner
Type: Microsoft.Office.Server.ActivityFeed.Entity

The entity that owns this ActivityEvent.

publisher
Type: Microsoft.Office.Server.ActivityFeed.Entity

The entity that publishes this ActivityEvent.

Only users with administrative permissions for the User Profile Service Application can use this method.

Show: