InstallationManager.RegisterPackageAsync Method

Definition

Registers a package (the main package) and its dependency packages for the current user.

public:
 static IAsyncOperationWithProgress<PackageInstallResult ^, unsigned int> ^ RegisterPackageAsync(Uri ^ manifestUri, IIterable<Uri ^> ^ dependencyPackageUris, DeploymentOptions deploymentOptions);
 static IAsyncOperationWithProgress<PackageInstallResult, uint32_t> RegisterPackageAsync(Uri const& manifestUri, IIterable<Uri> const& dependencyPackageUris, DeploymentOptions const& deploymentOptions);
public static IAsyncOperationWithProgress<PackageInstallResult,uint> RegisterPackageAsync(System.Uri manifestUri, IEnumerable<System.Uri> dependencyPackageUris, DeploymentOptions deploymentOptions);
function registerPackageAsync(manifestUri, dependencyPackageUris, deploymentOptions)
Public Shared Function RegisterPackageAsync (manifestUri As Uri, dependencyPackageUris As IEnumerable(Of Uri), deploymentOptions As DeploymentOptions) As IAsyncOperationWithProgress(Of PackageInstallResult, UInteger)

Parameters

manifestUri
Uri Uri

The path to the package manifest of the main package.

dependencyPackageUris

IIterable<Uri>

IEnumerable<Uri>

The paths to the dependency packages. If there are no dependency packages or if the dependency packages are already registered, this parameter can be null. When DeploymentOptions is set to DevelopmentMode, leave this parameter null.

deploymentOptions
DeploymentOptions

Options that modify the deployment operation.

Returns

IAsyncOperationWithProgress<PackageInstallResult,UInt32>

Windows.Foundation.IAsyncOperationWithProgress<Windows.Phone.Management.Deployment.PackageInstallResult,unsigned int>

IAsyncOperationWithProgress<PackageInstallResult,uint32_t>

An object that represents the asynchronous deployment operation and includes progress updates.

Applies to