Share via


OnProjectCommit.IEventActivity.Subscribe Method

Subscribes the OnProjectCommit workflow activity to an event.

Namespace:  Microsoft.Office.Project.Server.Workflow
Assembly:  Microsoft.Office.Project.Server.Workflow (in Microsoft.Office.Project.Server.Workflow.dll)

Syntax

'Declaration
Private Sub Subscribe ( _
    context As ActivityExecutionContext, _
    eventHandler As IActivityEventListener(Of QueueEventArgs) _
) Implements IEventActivity.Subscribe
'Usage
Dim instance As OnProjectCommit
Dim context As ActivityExecutionContext
Dim eventHandler As IActivityEventListener(Of QueueEventArgs)

CType(instance, IEventActivity).Subscribe(context, _
    eventHandler)
void IEventActivity.Subscribe(
    ActivityExecutionContext context,
    IActivityEventListener<QueueEventArgs> eventHandler
)

Parameters

Implements

IEventActivity.Subscribe(ActivityExecutionContext, IActivityEventListener<QueueEventArgs>)

See Also

Reference

OnProjectCommit Class

OnProjectCommit Members

Microsoft.Office.Project.Server.Workflow Namespace