Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IMicrosoftTeams interface

Provides access to the Teams SDK and Teams context. Only provided when the web part is loaded in Teams.

Properties

context

Microsoft Teams' Context.

teamsJs

Microsoft Teams SDK.

Property Details

context

Warning

This API is now deprecated.

This property is deprecated. Use the teamsJs.app.getContext() method instead.

Microsoft Teams' Context.

context: microsoftTeams.Context;

Property Value

@microsoft/teams-js!Context:interface

Remarks

For more information, please see: https://docs.microsoft.com/en-us/javascript/api/@microsoft/teams-js/microsoftteams.context?view=msteams-client-js-latest

teamsJs

Microsoft Teams SDK.

teamsJs: typeof microsoftTeams;

Property Value

typeof @microsoft/sp-webpart-base!~microsoftTeams