Language

FileConsent.OnAccept(FileConsentHandler, String[], UInt16) Method

Definition

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

public Microsoft.Agents.Extensions.MSTeams.FileConsents.FileConsent OnAccept(Microsoft.Agents.Extensions.MSTeams.FileConsents.FileConsentHandler handler, string[] autoSignInHandlers = default, ushort rank = 32767);
member this.OnAccept : Microsoft.Agents.Extensions.MSTeams.FileConsents.FileConsentHandler * string[] * uint16 -> Microsoft.Agents.Extensions.MSTeams.FileConsents.FileConsent
Public Function OnAccept (handler As FileConsentHandler, Optional autoSignInHandlers As String() = Nothing, Optional rank As UShort = 32767) As FileConsent

Parameters

handler
FileConsentHandler

Function to call when the route is triggered.

autoSignInHandlers
String[]

OAuth sign-in handler names for automatic sign-in before the route handler is invoked. Specify null to skip automatic sign-in.

rank
UInt16

Route evaluation order. Lower values run first. Defaults to Unspecified.

Returns

The AgentExtension instance for chaining purposes.

Remarks

Alternatively, the TeamsFileConsentAcceptRouteAttribute can be used to decorate a FileConsentHandler method for the same purpose.

Applies to