FileConsentDeclineRouteBuilder.WithHandler(FileConsentHandler) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.