Language

TeamsActivityExtensions.TeamsEnableFeedbackLoop(IActivity, String) Method

Definition

Adds the Teams feedback loop flag to the current activity's ChannelData. The ChannelData must be null before calling this method; returns false if ChannelData is already set.

public static bool TeamsEnableFeedbackLoop(this Microsoft.Agents.Core.Models.IActivity activity, string feedbackLoopType = "default");
static member TeamsEnableFeedbackLoop : Microsoft.Agents.Core.Models.IActivity * string -> bool
<Extension()>
Public Function TeamsEnableFeedbackLoop (activity As IActivity, Optional feedbackLoopType As String = "default") As Boolean

Parameters

activity
IActivity

The current activity.

feedbackLoopType
String

The feedback loop type value. Defaults to "default".

Returns

true if the feedback loop flag was added; false if ChannelData was already populated.

Applies to