Language

FileConsentDeclineRouteBuilder.WithHandler(FileConsentHandler) Method

Definition

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

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

Parameters

handler
FileConsentHandler

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

Returns

The current FileConsentDeclineRouteBuilder instance for method chaining.

Applies to