Language

FileConsentExtensions.OnFileConsent Method

Definition

Registers a handler for file consent invoke activities. Cannot be combined with OnInvoke(TeamsBotApplication, InvokeHandler).

public static Microsoft.Teams.Apps.TeamsBotApplication OnFileConsent(this Microsoft.Teams.Apps.TeamsBotApplication app, Microsoft.Teams.Apps.Files.FileConsentValueHandler handler);
static member OnFileConsent : Microsoft.Teams.Apps.TeamsBotApplication * Microsoft.Teams.Apps.Files.FileConsentValueHandler -> Microsoft.Teams.Apps.TeamsBotApplication
<Extension()>
Public Function OnFileConsent (app As TeamsBotApplication, handler As FileConsentValueHandler) As TeamsBotApplication

Parameters

app
TeamsBotApplication

The Teams bot application.

handler
FileConsentValueHandler

The handler to register.

Returns

The updated Teams bot application.

Remarks

Breaking change: previously a catch-all invoke handler could be registered alongside specific invoke handlers. This combination now throws at registration time.

Applies to