FileConsentAcceptRouteBuilder.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 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.