PrepAway - Latest Free Exam Questions & Answers

How should you complete the code?

DRAG DROPYou are developing a Universal Windows Platform (UWP) app named App1.
App1 can be started by using Cortana. To start the app, users must be able to say “App1 play my music” or
“App1 play music”.
You need to write the Voice Command Definition (VCD) file to meet the requirement.
How should you complete the code? Tо answer, drag the appropriate code elements to the correct targets.
Each element may be used once, more than once, or not at all. You may need to drag the split bar between
panes or scroll to view content.
Select and Place:

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:
To specify where the app name can be spoken in the voice command.
The ListenFor element has a RequireAppName attribute that specifies where the app name can appear in the
voice command. The BeforePhrase indicates that users must say your app name before the command phrase.
Example: Here, Cortana listens for “Adventure Works when is my trip to Las Vegas”.
<ListenFor RequireAppName=”BeforePhrase”> when is [my] trip to {destination} </ListenFor>

https://msdn.microsoft.com/en-us/library/windows/apps/mt185616.aspx

3 Comments on “How should you complete the code?


Leave a Reply