SettingRouteBuilder.WithHandler(SettingHandler) 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 asynchronous handler for processing configure settings.
public Microsoft.Agents.Extensions.MSTeams.MessageExtensions.SettingRouteBuilder WithHandler(Microsoft.Agents.Extensions.MSTeams.MessageExtensions.SettingHandler handler);
member this.WithHandler : Microsoft.Agents.Extensions.MSTeams.MessageExtensions.SettingHandler -> Microsoft.Agents.Extensions.MSTeams.MessageExtensions.SettingRouteBuilder
Public Function WithHandler (handler As SettingHandler) As SettingRouteBuilder
Parameters
- handler
- SettingHandler
Returns
The current instance of SettingRouteBuilder, enabling method chaining.
Remarks
Use this method to specify custom logic for handling configure settings in Teams message extensions. The handler receives the deserialized data from the incoming activity, allowing for type-safe processing of the action's payload.