IActivityExtensions.MakeTargetedActivity(IActivity) Method

Definition

Marks the specified activity as targeted by adding a targeted treatment entity to its collection.

public static void MakeTargetedActivity(this Microsoft.Agents.Core.Models.IActivity activity);
static member MakeTargetedActivity : Microsoft.Agents.Core.Models.IActivity -> unit
<Extension()>
Public Sub MakeTargetedActivity (activity As IActivity)

Parameters

activity
IActivity

The activity to be marked as targeted. Cannot be null.

Remarks

This method ensures that the activity's Entities collection is initialized before adding the targeted treatment. Use this extension to indicate that an activity should be processed or interpreted as targeted in downstream workflows.

Applies to