Compartilhar via


VoiceCommandManager.InstallCommandSetsFromStorageFileAsync Método

Definição

Instala os elementos CommandSet em um arquivo de definição de comando de voz .

public:
 static IAsyncAction ^ InstallCommandSetsFromStorageFileAsync(StorageFile ^ file);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction InstallCommandSetsFromStorageFileAsync(StorageFile const& file);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("Use Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager instead of Windows.Media.SpeechRecognition.VoiceComandManager. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Phone.PhoneContract")]
 static IAsyncAction InstallCommandSetsFromStorageFileAsync(StorageFile const& file);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction InstallCommandSetsFromStorageFileAsync(StorageFile file);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("Use Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager instead of Windows.Media.SpeechRecognition.VoiceComandManager. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Phone.PhoneContract")]
public static IAsyncAction InstallCommandSetsFromStorageFileAsync(StorageFile file);
function installCommandSetsFromStorageFileAsync(file)
Public Shared Function InstallCommandSetsFromStorageFileAsync (file As StorageFile) As IAsyncAction

Parâmetros

file
StorageFile

Um objeto que representa um arquivo VCD (Definição de Comando de Voz).

Retornos

Uma ação assíncrona.

Atributos

Comentários

Aguardar essa chamada no thread da interface do usuário pode atrasar o carregamento do aplicativo.

Aplica-se a

Confira também