VoiceCommandManager.InstallCommandSetsFromStorageFileAsync 方法

定义

语音命令定义文件中安装 CommandSet 元素。

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

参数

file
StorageFile

表示语音命令定义的对象 (VCD) 文件。

返回

异步操作。

属性

注解

在 UI 线程上等待此调用可能会延迟应用的加载。

适用于

另请参阅