Context interface
Represents structure of the received context message.
Properties
action |
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 |
chat | When running in the context of a Teams chat, provides information about the chat, else |
meeting | When running in the context of a Teams meeting, provides information about the meeting, else |
page | Info about the current page context hosting your app |
sharepoint | When hosted in SharePoint, this is the SharePoint PageContext, else |
share |
When running in Teams for an organization with a tenant, provides information about the SharePoint site associated with the team.
Will be |
team | When running in Teams, provides information about the Team context in which your app is running.
Will be |
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 |
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
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
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
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: a lo largo de 2024, eliminaremos gradualmente los problemas de GitHub como mecanismo de comentarios para el contenido y lo reemplazaremos por un nuevo sistema de comentarios. Para obtener más información, consulte:Enviar y ver comentarios de