Share via


CommandActivity.IEventActivity.Subscribe Method

Called to get the CommandActivity to create a queue for its event. Because commands do not exist standalone without CommandsActivity in Microsoft Unified Communications Managed API, this method is only called by the CommandsActivity.

Namespace:  Microsoft.Rtc.Workflow.Activities
Assembly:  Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)

Syntax

'Declaration
Private Sub Subscribe ( _
    parentContext As ActivityExecutionContext, _
    parentEventHandler As IActivityEventListener(Of QueueEventArgs) _
) Implements IEventActivity.Subscribe
void IEventActivity.Subscribe(
    ActivityExecutionContext parentContext,
    IActivityEventListener<QueueEventArgs> parentEventHandler
)
private:
virtual void Subscribe(
    ActivityExecutionContext^ parentContext, 
    IActivityEventListener<QueueEventArgs^>^ parentEventHandler
) sealed = IEventActivity::Subscribe
JavaScript does not support explicit interface implementations.

Parameters

Implements

IEventActivity.Subscribe(ActivityExecutionContext, IActivityEventListener<QueueEventArgs>)

Exceptions

Exception Condition
System.ArgumentNullException Thrown if argument is null.

See Also

CommandActivity Class

Microsoft.Rtc.Workflow.Activities Namespace