Language

TeamsTeam.OnArchived(TeamUpdateHandler, String[], UInt16) Method

Definition

Registers a handler to be invoked when a team is archived.

public Microsoft.Agents.Extensions.MSTeams.Teams.TeamsTeam OnArchived(Microsoft.Agents.Extensions.MSTeams.Teams.TeamUpdateHandler handler, string[] autoSignInHandlers = default, ushort rank = 32767);
member this.OnArchived : Microsoft.Agents.Extensions.MSTeams.Teams.TeamUpdateHandler * string[] * uint16 -> Microsoft.Agents.Extensions.MSTeams.Teams.TeamsTeam
Public Function OnArchived (handler As TeamUpdateHandler, Optional autoSignInHandlers As String() = Nothing, Optional rank As UShort = 32767) As TeamsTeam

Parameters

handler
TeamUpdateHandler

The delegate that handles the team archived event. This handler is called with information about the team.

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 current TeamsTeam instance, allowing for method chaining.

Remarks

Alternatively, the TeamsTeamArchivedRouteAttribute can be used to decorate a TeamUpdateHandler method for the same purpose.

Applies to