Share via


VoiceCommandDefinitionManager.InstallCommandDefinitionsFromStorageFileAsync 方法

定義

在語音命令定義 (VCD) 檔案中安裝 CommandSet 元素。

public:
 static IAsyncAction ^ InstallCommandDefinitionsFromStorageFileAsync(StorageFile ^ file);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction InstallCommandDefinitionsFromStorageFileAsync(StorageFile const& file);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction InstallCommandDefinitionsFromStorageFileAsync(StorageFile file);
function installCommandDefinitionsFromStorageFileAsync(file)
Public Shared Function InstallCommandDefinitionsFromStorageFileAsync (file As StorageFile) As IAsyncAction

參數

file
StorageFile

物件,表示 VCD) 檔案 (語音命令定義。

傳回

作業完成時會呼叫非同步處理常式。

屬性

備註

只從 OnLaunched 覆寫或 繼續 事件處理常式呼叫這個方法。

請勿從 Suspending 事件處理常式呼叫這個方法,因為動作可能需要比系統針對應用程式暫停所分配的時間更長。

適用於

另請參閱