-api-id | -api-type |
---|---|
M:Windows.Phone.Management.Deployment.InstallationManager.AddPackageAsync(System.String,Windows.Foundation.Uri) |
winrt method |
Starts the installation process for the app specified by the app title and location URI.
The name of the app to install.
The URI location of the app to install.
The asynchronous operation that represents the installation process.
void InstallMyCoolApp()
{
Uri uri = new Uri(@"https://PlaceHolderServerName/XAP/MyCoolApp.xap");
string appTitle = "Cool App";
Windows.Foundation.IAsyncOperationWithProgress<PackageInstallResult, uint> result;
// Queue up an installation request.
result = InstallationManager.AddPackageAsync(appTitle, uri);
// Note: You could save "result" as a member variable to enable
// the installation to be cancelled later.
}