IActivityExtensions.IsTargetedActivity(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.
Determines whether the specified activity represents a targeted activity treatment.
public static bool IsTargetedActivity(this Microsoft.Agents.Core.Models.IActivity activity);
static member IsTargetedActivity : Microsoft.Agents.Core.Models.IActivity -> bool
<Extension()>
Public Function IsTargetedActivity (activity As IActivity) As Boolean
Parameters
- activity
- IActivity
The activity to evaluate for targeted treatment. Cannot be null.
Returns
true if the activity contains an entity of type ActivityTreatment with a treatment of Targeted; otherwise, false.
Remarks
Use this method to identify activities that are specifically marked as targeted treatments. This can be useful for filtering or processing activities based on their treatment type.