-api-id | -api-type |
---|---|
M:Windows.Management.Deployment.PackageManager.AddPackageAsync(Windows.Foundation.Uri,Windows.Foundation.Collections.IIterable{Windows.Foundation.Uri},Windows.Management.Deployment.DeploymentOptions,Windows.Management.Deployment.PackageVolume,Windows.Foundation.Collections.IIterable{System.String},Windows.Foundation.Collections.IIterable{Windows.Foundation.Uri}) |
winrt method |
Adds a Package and its dependency packages to the specified volume for the current user, using the specified deployment options.
The Uri of the source package to add. The URI must follow the file URI scheme (file://) since the only supported URI schemes are local file paths and local network paths.
The Uris of the dependency packages to add. If there are no dependency packages or if the dependency packages are already registered, this parameter can be null.
A bitwise combination of enumeration values from the DeploymentOptions enumeration. ForceApplicationShutdown and None are the only valid options for this method. Specifying any other option results in an E_INVALIDARG return value.
The volume that the package is added to.
The package family names from the main bundle to be registered.
The URIs of the other packages in the main bundle to be registered.
The DeploymentProgress percentage of completion over the entire course of the deployment operation.