다음을 통해 공유


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 스레드에서 이 호출을 기다리면 앱 로드가 지연됩니다.

적용 대상

추가 정보