exam questions

Exam MS-600 All Questions

View all questions & answers for the MS-600 exam

Exam MS-600 topic 4 question 35 discussion

Actual exam question from Microsoft's MS-600
Question #: 35
Topic #: 4
[All MS-600 Questions]

You are developing a Microsoft Teams app that will display differently depending on the current UI theme applied to Microsoft Teams.
You need to retrieve the current theme by using the Microsoft Teams JavaScript client SDK?
Which function should you call?

  • A. microsoftTeams.getMruTabInstances
  • B. microsoftTeams.getContext
  • C. microsoftTeams.initialize
  • D. microsoftTeams.settings.getSettings
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
The available placeholders include all fields on the context object. Common placeholders include the following:
{entityId}: The ID you supplied for the item in this tab when first configuring the tab.
{theme}: The current user interface (UI) theme such as default, dark, or contrast.
Reference:
https://docs.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/access-teams-context

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago