MessageExtension.OnAnonymousQueryLink 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 that implements the logic to handle anonymous link unfurling.
public Microsoft.Agents.Extensions.MSTeams.MessageExtensions.MessageExtension OnAnonymousQueryLink(Microsoft.Agents.Extensions.MSTeams.MessageExtensions.QueryLinkHandler handler, string[] autoSignInHandlers = default, ushort rank = 32767);
member this.OnAnonymousQueryLink : Microsoft.Agents.Extensions.MSTeams.MessageExtensions.QueryLinkHandler * string[] * uint16 -> Microsoft.Agents.Extensions.MSTeams.MessageExtensions.MessageExtension
Public Function OnAnonymousQueryLink (handler As QueryLinkHandler, Optional autoSignInHandlers As String() = Nothing, Optional rank As UShort = 32767) As MessageExtension
Parameters
- handler
- QueryLinkHandler
Function to call when the event is triggered.
- autoSignInHandlers
- String[]
OAuth sign-in handler names for automatic sign-in before the route handler is invoked. Specify null to skip automatic sign-in.
- rank
- UInt16
Route evaluation order. Lower values run first. Defaults to Unspecified.
Returns
The application instance for chaining purposes.
Remarks
Alternatively, the TeamsAnonQueryLinkRouteAttribute can be used to decorate a QueryLinkHandler method for the same purpose.