VoiceCommandSet Classe

Definizione

Nota

VoiceCommandSet può essere modificato o non disponibile per le versioni dopo Windows Phone 8.1. Usare invece Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition.

Abilita le operazioni su un set di comandi installato specifico.

public ref class VoiceCommandSet sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class VoiceCommandSet final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Deprecated("Use Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition instead of Windows.Media.SpeechRecognition.VoiceComandSet. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Phone.PhoneContract")]
class VoiceCommandSet final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class VoiceCommandSet
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Deprecated("Use Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition instead of Windows.Media.SpeechRecognition.VoiceComandSet. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Phone.PhoneContract")]
public sealed class VoiceCommandSet
Public NotInheritable Class VoiceCommandSet
Ereditarietà
Object Platform::Object IInspectable VoiceCommandSet
Attributi

Requisiti Windows

Famiglia di dispositivi
Windows Mobile Extension SDK (è stato introdotto in 10.0.10240.0)
API contract
Windows.Phone.PhoneContract (è stato introdotto in v1.0)

Commenti

Accedere alla proprietà VoiceCommandManager.InstalledCommandSets per ottenere un'istanza di questa classe.

Proprietà

Language

Ottiene il valore language (xml:lang) dell'elemento CommandSet nel file di definizione del comando vocale .

Name

Ottiene il valore dell'attributo Name dell'elemento CommandSet nel file di definizione del comando vocale .

Metodi

SetPhraseListAsync(String, IIterable<String>)

Popola un elemento PhraseList con una matrice di elementi Item .

Si applica a

Vedi anche