MessageExtensionExtensions.OnSetting 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.
Registers a handler for message extension setting invoke activities. Called by Teams when the user saves settings after the config URL popup. Must be paired with OnQuerySettingUrl(TeamsBotApplication, MessageExtensionQuerySettingUrlHandler) to complete the settings flow.
public static Microsoft.Teams.Apps.TeamsBotApplication OnSetting(this Microsoft.Teams.Apps.TeamsBotApplication app, Microsoft.Teams.Apps.MessageExtensions.MessageExtensionSettingsHandler handler);
static member OnSetting : Microsoft.Teams.Apps.TeamsBotApplication * Microsoft.Teams.Apps.MessageExtensions.MessageExtensionSettingsHandler -> Microsoft.Teams.Apps.TeamsBotApplication
<Extension()>
Public Function OnSetting (app As TeamsBotApplication, handler As MessageExtensionSettingsHandler) As TeamsBotApplication
Parameters
The Teams bot application.
- handler
- MessageExtensionSettingsHandler
The handler to register.
Returns
The updated Teams bot application.