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)
Syntax
'Declaration
Public Shared Function CreateActivityEvent ( _
objManager As ActivityManager, _
activityTypeId As Long, _
owner As Entity, _
publisher As Entity _
) As ActivityEvent
'Usage
Dim objManager As ActivityManager
Dim activityTypeId As Long
Dim owner As Entity
Dim publisher As Entity
Dim returnValue As ActivityEvent
returnValue = ActivityEvent.CreateActivityEvent(objManager, _
activityTypeId, owner, publisher)
public static ActivityEvent CreateActivityEvent(
ActivityManager objManager,
long activityTypeId,
Entity owner,
Entity publisher
)
Parameters
objManager
Type: Microsoft.Office.Server.ActivityFeed.ActivityManagerThe ActivityManager object that is responsible for gathering this ActivityEvent.
activityTypeId
Type: System.Int64The 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.EntityThe entity that owns this ActivityEvent.
publisher
Type: Microsoft.Office.Server.ActivityFeed.EntityThe entity that publishes this ActivityEvent.
Return Value
Type: Microsoft.Office.Server.ActivityFeed.ActivityEvent
Remarks
Only users with administrative permissions for the User Profile Service Application can use this method.