InstallationManager.AddPackageAsync InstallationManager.AddPackageAsync InstallationManager.AddPackageAsync InstallationManager.AddPackageAsync Method

Definition

Overloads

AddPackageAsync(String, Uri) AddPackageAsync(String, Uri) AddPackageAsync(String, Uri) AddPackageAsync(String, Uri)

Starts the installation process for the app specified by the app title and location URI.

AddPackageAsync(String, Uri, String, String, Uri) AddPackageAsync(String, Uri, String, String, Uri) AddPackageAsync(String, Uri, String, String, Uri) AddPackageAsync(String, Uri, String, String, Uri)

This API is not intended to be used directly from your code.

AddPackageAsync(String, Uri) AddPackageAsync(String, Uri) AddPackageAsync(String, Uri) AddPackageAsync(String, Uri)

Starts the installation process for the app specified by the app title and location URI.

public : static IAsyncOperationWithProgress<PackageInstallResult, unsigned int> AddPackageAsync(Platform::String title, Uri sourceLocation)
static IAsyncOperationWithProgress<PackageInstallResult, uint32_t> AddPackageAsync(winrt::hstring title, Uri sourceLocation) const;
public static IAsyncOperationWithProgress<PackageInstallResult, uint> AddPackageAsync(String title, Uri sourceLocation)
Public Shared Function AddPackageAsync(title As String, sourceLocation As Uri) As IAsyncOperationWithProgress(Of PackageInstallResultuint)

Parameters

title
String String

The name of the app to install.

sourceLocation
Uri Uri

The URI location of the app to install.

Returns

Examples

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.
}
See also

AddPackageAsync(String, Uri, String, String, Uri) AddPackageAsync(String, Uri, String, String, Uri) AddPackageAsync(String, Uri, String, String, Uri) AddPackageAsync(String, Uri, String, String, Uri)

This API is not intended to be used directly from your code.

public : static IAsyncOperationWithProgress<PackageInstallResult, unsigned int> AddPackageAsync(Platform::String title, Uri sourceLocation, Platform::String instanceId, Platform::String offerId, Uri license)
static IAsyncOperationWithProgress<PackageInstallResult, uint32_t> AddPackageAsync(winrt::hstring title, Uri sourceLocation, winrt::hstring instanceId, winrt::hstring offerId, Uri license) const;
public static IAsyncOperationWithProgress<PackageInstallResult, uint> AddPackageAsync(String title, Uri sourceLocation, String instanceId, String offerId, Uri license)
Public Shared Function AddPackageAsync(title As String, sourceLocation As Uri, instanceId As String, offerId As String, license As Uri) As IAsyncOperationWithProgress(Of PackageInstallResultuint)

Parameters

title
String String

This API is not intended to be used directly from your code.

sourceLocation
Uri Uri

This API is not intended to be used directly from your code.

instanceId
String String

This API is not intended to be used directly from your code.

offerId
String String

This API is not intended to be used directly from your code.

license
Uri Uri

This API is not intended to be used directly from your code.

Returns

Additional features and requirements

Capabilities
oemDeployment
See also