FileConsentValueHandler Delegate
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.
Delegate for handling file consent invoke activities.
public delegate System.Threading.Tasks.Task<Microsoft.Teams.Apps.InvokeResponse<Microsoft.Teams.Apps.AdaptiveCardResponse>> FileConsentValueHandler(Context<InvokeActivity<FileConsentValue>> context, CancellationToken cancellationToken = default);
type FileConsentValueHandler = delegate of Context<InvokeActivity<FileConsentValue>> * CancellationToken -> Task<InvokeResponse<AdaptiveCardResponse>>
Public Delegate Function FileConsentValueHandler(context As Context(Of InvokeActivity(Of FileConsentValue)), Optional cancellationToken As CancellationToken = Nothing) As Task(Of InvokeResponse(Of AdaptiveCardResponse))
Parameters
- context
- Context<InvokeActivity<FileConsentValue>>
The context for the invoke activity, providing access to the activity data and bot application.
- cancellationToken
- CancellationToken
A cancellation token that can be used to cancel the operation.
Return Value
A task that represents the asynchronous operation. The task result contains the invoke response.