共用方式為


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 執行緒上等候此呼叫可能會延遲載入您的應用程式。

適用於

另請參閱