Partilhar via


CommunicationsSequenceActivity.GetDynamicActivity Method

Gets the dynamic child activity with the specified name.

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

Syntax

'Declaration
Public Function GetDynamicActivity ( _
    childActivityName As String _
) As Activity
'Usage
Dim instance As CommunicationsSequenceActivity
Dim childActivityName As String
Dim returnValue As Activity

returnValue = instance.GetDynamicActivity(childActivityName)
public Activity GetDynamicActivity(
    string childActivityName
)

Parameters

  • childActivityName
    Type: System.String
    The name of the child activity.

Return Value

Type: System.Workflow.ComponentModel.Activity
The running copy of the activity, or null if the activity is not currently running.

Exceptions

Exception Condition
ArgumentException

Thrown if the argument is null or empty.

ArgumentException

Thrown if the activity requested is not a child of this CommuniationSequenceActivity.

See Also

Reference

CommunicationsSequenceActivity Class

CommunicationsSequenceActivity Members

Microsoft.Rtc.Workflow.Activities Namespace