Aracılığıyla paylaş


VoiceCommandDefinitionManager.InstallCommandDefinitionsFromStorageFileAsync Method

Definition

Installs the CommandSet elements in a Voice Command Definition (VCD) file.

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

Parameters

file
StorageFile

An object representing a Voice Command Definition (VCD) file.

Returns

An asynchronous handler called when the operation is complete.

Attributes

Remarks

Call this method only from your OnLaunched override, or a Resuming event handler.

Do not call this method from a Suspending event handler as the action might take longer than the time allotted by the system for app suspension.

Applies to

See also