TeamsMembersRemovedRouteAttribute Class
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.
Attribute to define a route that handles conversation update activities when members are removed.
[Microsoft.Agents.Builder.App.RouteHandlerType(typeof(Microsoft.Agents.Extensions.MSTeams.App.TeamsRouteHandler))]
[System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)]
public class TeamsMembersRemovedRouteAttribute : Attribute, Microsoft.Agents.Builder.App.IRouteAttribute
[<Microsoft.Agents.Builder.App.RouteHandlerType(typeof(Microsoft.Agents.Extensions.MSTeams.App.TeamsRouteHandler))>]
[<System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)>]
type TeamsMembersRemovedRouteAttribute = class
inherit Attribute
interface IRouteAttribute
Public Class TeamsMembersRemovedRouteAttribute
Inherits Attribute
Implements IRouteAttribute
- Inheritance
-
TeamsMembersRemovedRouteAttribute
- Attributes
- Implements
Remarks
Decorate a method with this attribute to register it as a handler for the MembersRemoved event. The method must match the TeamsRouteHandler delegate signature.
[TeamsMembersRemovedRoute]
public async Task OnMembersRemovedAsync(ITeamsTurnContext turnContext, ITurnState turnState, CancellationToken cancellationToken)
{
// Handle members removed event
}
Constructors
| Name | Description |
|---|---|
| TeamsMembersRemovedRouteAttribute(Boolean, UInt16, String) |
Attribute to define a route that handles conversation update activities when members are removed. |
Methods
| Name | Description |
|---|---|
| AddRoute(AgentApplication, MethodInfo) | |