Context interface

Represents structure of the received context message.

Properties

actionInfo

Content Action Info

app

Properties about the current session for your app

channel

When running in the context of a Teams channel, provides information about the channel, else undefined

chat

When running in the context of a Teams chat, provides information about the chat, else undefined

meeting

When running in the context of a Teams meeting, provides information about the meeting, else undefined

page

Info about the current page context hosting your app

sharepoint

When hosted in SharePoint, this is the SharePoint PageContext, else undefined

sharePointSite

When running in Teams for an organization with a tenant, provides information about the SharePoint site associated with the team. Will be undefined when not running in Teams for an organization with a tenant.

team

When running in Teams, provides information about the Team context in which your app is running. Will be undefined when not running in Teams.

user

Info about the currently logged in user running the app. If the current user is not logged in/authenticated (e.g. a meeting app running for an anonymously-joined partcipant) this will be undefined.

Property Details

actionInfo

Note

This API is in Beta and provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Content Action Info

actionInfo?: ActionInfo

Property Value

app

Properties about the current session for your app

app: AppInfo

Property Value

channel

When running in the context of a Teams channel, provides information about the channel, else undefined

channel?: ChannelInfo

Property Value

chat

When running in the context of a Teams chat, provides information about the chat, else undefined

chat?: ChatInfo

Property Value

meeting

When running in the context of a Teams meeting, provides information about the meeting, else undefined

meeting?: MeetingInfo

Property Value

page

Info about the current page context hosting your app

page: PageInfo

Property Value

sharepoint

When hosted in SharePoint, this is the SharePoint PageContext, else undefined

sharepoint?: any

Property Value

any

sharePointSite

When running in Teams for an organization with a tenant, provides information about the SharePoint site associated with the team. Will be undefined when not running in Teams for an organization with a tenant.

sharePointSite?: SharePointSiteInfo

Property Value

team

When running in Teams, provides information about the Team context in which your app is running. Will be undefined when not running in Teams.

team?: TeamInfo

Property Value

user

Info about the currently logged in user running the app. If the current user is not logged in/authenticated (e.g. a meeting app running for an anonymously-joined partcipant) this will be undefined.

user?: UserInfo

Property Value