PackageManager.AddPackageByAppInstallerFileAsync Metode

Definisi

Memungkinkan paket aplikasi tunggal atau beberapa diinstal dengan file .appinstaller.

public:
 virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ AddPackageByAppInstallerFileAsync(Uri ^ appInstallerFileUri, AddPackageByAppInstallerOptions options, PackageVolume ^ targetVolume) = AddPackageByAppInstallerFileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> AddPackageByAppInstallerFileAsync(Uri const& appInstallerFileUri, AddPackageByAppInstallerOptions const& options, PackageVolume const& targetVolume);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> AddPackageByAppInstallerFileAsync(System.Uri appInstallerFileUri, AddPackageByAppInstallerOptions options, PackageVolume targetVolume);
function addPackageByAppInstallerFileAsync(appInstallerFileUri, options, targetVolume)
Public Function AddPackageByAppInstallerFileAsync (appInstallerFileUri As Uri, options As AddPackageByAppInstallerOptions, targetVolume As PackageVolume) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)

Parameter

appInstallerFileUri
Uri Uri

Uri ke file .appinstaller.

options
AddPackageByAppInstallerOptions

Opsi seperti yang ditentukan dalam AddPackageByAppInstallerOptions.

targetVolume
PackageVolume

Volume tempat paket diinstal.

Mengembalikan

Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 Fall Creators Update (diperkenalkan dalam 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v5.0)
Kemampuan aplikasi
packageManagement

Keterangan

Metode ini tidak didukung di JavaScript. Namun, Anda dapat membuat komponen Windows Runtime yang memanggil metode ini lalu memanggil komponen ini dari aplikasi JavaScript UWP. Untuk informasi selengkapnya, lihat Masalah API file Penginstal Aplikasi.

Berlaku untuk

Lihat juga