MessageExtensionExtensions.OnAnonQueryLink 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 anonymous query link invoke activities. Cannot be combined with OnInvoke(TeamsBotApplication, InvokeHandler).
public static Microsoft.Teams.Apps.TeamsBotApplication OnAnonQueryLink(this Microsoft.Teams.Apps.TeamsBotApplication app, Microsoft.Teams.Apps.MessageExtensions.MessageExtensionAnonQueryLinkHandler handler);
static member OnAnonQueryLink : Microsoft.Teams.Apps.TeamsBotApplication * Microsoft.Teams.Apps.MessageExtensions.MessageExtensionAnonQueryLinkHandler -> Microsoft.Teams.Apps.TeamsBotApplication
<Extension()>
Public Function OnAnonQueryLink (app As TeamsBotApplication, handler As MessageExtensionAnonQueryLinkHandler) As TeamsBotApplication
Parameters
The Teams bot application.
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.