Language

AnonQueryLinkRouteBuilder.AsInvoke(Boolean) Method

Definition

Returns the current route builder instance configured for Invoke routing. This method ensures that the route remains set as an Invoke route.

public override Microsoft.Agents.Extensions.MSTeams.MessageExtensions.AnonQueryLinkRouteBuilder AsInvoke(bool isInvoke = true);
override this.AsInvoke : bool -> Microsoft.Agents.Extensions.MSTeams.MessageExtensions.AnonQueryLinkRouteBuilder
Public Overrides Function AsInvoke (Optional isInvoke As Boolean = true) As AnonQueryLinkRouteBuilder

Parameters

isInvoke
Boolean

A value indicating whether the route should be treated as an Invoke route. The parameter is ignored, as the route is always configured for Invoke routing.

Returns

The current instance of AnonQueryLinkRouteBuilder with Invoke routing enabled.

Remarks

This override prevents changing the route configuration from Invoke routing, maintaining consistency with the route's initial setup.

Applies to