TeamsAgentExtension.OnFileConsentAccept Method

Definition

Handles when a file consent card is accepted by the user.

public Microsoft.Agents.Extensions.Teams.App.TeamsAgentExtension OnFileConsentAccept(Microsoft.Agents.Extensions.Teams.App.FileConsentHandler handler, ushort rank = 32767, string[] autoSignInHandlers = default, bool isAgenticOnly = false);
member this.OnFileConsentAccept : Microsoft.Agents.Extensions.Teams.App.FileConsentHandler * uint16 * string[] * bool -> Microsoft.Agents.Extensions.Teams.App.TeamsAgentExtension
Public Function OnFileConsentAccept (handler As FileConsentHandler, Optional rank As UShort = 32767, Optional autoSignInHandlers As String() = Nothing, Optional isAgenticOnly As Boolean = false) As TeamsAgentExtension

Parameters

handler
FileConsentHandler

Function to call when the route is triggered.

rank
UInt16

0 - ushort.MaxValue for order of evaluation. Ranks of the same value are evaluated in order of addition.

autoSignInHandlers
String[]

List of UserAuthorization handlers to get token for.

isAgenticOnly
Boolean

True if the route is for Agentic requests only.

Returns

The AgentExtension instance for chaining purposes.

Applies to