Language

FileConsentAcceptRouteBuilder.WithHandler(FileConsentHandler) Method

Definition

Configures the route to use the specified handler for processing file consent accept invocations.

public Microsoft.Agents.Extensions.MSTeams.FileConsents.FileConsentAcceptRouteBuilder WithHandler(Microsoft.Agents.Extensions.MSTeams.FileConsents.FileConsentHandler handler);
member this.WithHandler : Microsoft.Agents.Extensions.MSTeams.FileConsents.FileConsentHandler -> Microsoft.Agents.Extensions.MSTeams.FileConsents.FileConsentAcceptRouteBuilder
Public Function WithHandler (handler As FileConsentHandler) As FileConsentAcceptRouteBuilder

Parameters

handler
FileConsentHandler

An asynchronous delegate invoked when the user accepts the file consent card. Receives the turn context, turn state, deserialized FileConsentValue, and a cancellation token.

Returns

The current FileConsentAcceptRouteBuilder instance for method chaining.

Applies to