Language

SettingRouteBuilder.WithHandler(SettingHandler) Method

Definition

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.

Applies to