IActivityExtensions.MakeTargetedActivity(IActivity) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.