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

  • activityTypeId
    Type: System.Int64

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

Return value

Type: Microsoft.Office.Server.ActivityFeed.ActivityEvent

Remarks

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

See also

Reference

ActivityEvent class

ActivityEvent members

Microsoft.Office.Server.ActivityFeed namespace