VoiceCommandDefinition
VoiceCommandDefinition
VoiceCommandDefinition
VoiceCommandDefinition
Class
Definition
Enables operations on a specific installed command set.
public : sealed class VoiceCommandDefinition : IVoiceCommandDefinitionpublic sealed class VoiceCommandDefinition : IVoiceCommandDefinitionPublic NotInheritable Class VoiceCommandDefinition Implements IVoiceCommandDefinition// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
Access the InstalledCommandDefinitions property to obtain an instance of this class.
Properties
Language Language Language Language
Gets the language (xml:lang) value of the CommandSet element in the Voice Command Definition (VCD) file.
public : PlatForm::String Language { get; }public string Language { get; }Public ReadOnly Property Language As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The language (xml:lang) of the command set.
- See Also
Name Name Name Name
Gets the Name attribute value of the CommandSet element in the Voice Command Definition (VCD) file.
public : PlatForm::String Name { get; }public string Name { get; }Public ReadOnly Property Name As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The Name attribute value of the CommandSet element.
- See Also
Methods
SetPhraseListAsync(String, IIterable)
SetPhraseListAsync(String, IIterable)
SetPhraseListAsync(String, IIterable)
SetPhraseListAsync(String, IIterable)
Populates a PhraseList element with an array of Item elements.
public : IAsyncAction SetPhraseListAsync(PlatForm::String phraseListName, IIterable<PlatForm::String> phraseList)public IAsyncAction SetPhraseListAsync(String phraseListName, IEnumerable<String> phraseList)Public Function SetPhraseListAsync(phraseListName As String, phraseList As IEnumerable<String>) As IAsyncAction// You can use this method in JavaScript.
Parameters
- phraseListName
- PlatForm::String String String String
The string that corresponds to the label attribute of the PhraseList element.
- phraseList
- IIterable<PlatForm::String> IEnumerable<String> IEnumerable<String> IEnumerable<String>
A string array of values that will be added to the PhraseList element as Item elements.
Returns
A string array of values that will be added to the PhraseList element as Item elements.
- See Also