-api-id | -api-type |
---|---|
M:Windows.Management.Deployment.PackageManager.UpdatePackageAsync(Windows.Foundation.Uri,Windows.Foundation.Collections.IIterable{Windows.Foundation.Uri},Windows.Management.Deployment.DeploymentOptions) |
winrt method |
Updates an installed Package or its dependency packages for the current user.
The source URI of the main package.
The source URIs of the dependency packages.
One of the permitted enumeration values. ForceApplicationShutdown and None are the only valid options for this method and specifying any other deployment option results in an E_INVALIDARG return value.
The status of the deployment request. The DeploymentResult contains the final returned value of the deployment operation, once it is completed. The DeploymentProgress can be used to obtain the percentage of completion over the entire course of the deployment operation.
An installed package can be updated only if the version of the update package is higher than that of the installed package. If no previous version of the package exists, the operation fails.
packageManagement