PackageManager.RegisterPackageByFullNameAsync(String, IIterable<String>, DeploymentOptions) PackageManager.RegisterPackageByFullNameAsync(String, IIterable<String>, DeploymentOptions) PackageManager.RegisterPackageByFullNameAsync(String, IIterable<String>, DeploymentOptions) PackageManager.RegisterPackageByFullNameAsync(String, IIterable<String>, DeploymentOptions) Method

Definition

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

public : IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> RegisterPackageByFullNameAsync(Platform::String mainPackageFullName, IIterable<Platform::String> dependencyPackageFullNames, DeploymentOptions deploymentOptions)
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> RegisterPackageByFullNameAsync(winrt::hstring mainPackageFullName, IIterable<winrt::hstring> dependencyPackageFullNames, DeploymentOptions deploymentOptions) const;
public IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> RegisterPackageByFullNameAsync(String mainPackageFullName, IEnumerable<String> dependencyPackageFullNames, DeploymentOptions deploymentOptions)
Public Function RegisterPackageByFullNameAsync(mainPackageFullName As String, dependencyPackageFullNames As IEnumerable(Of String), deploymentOptions As DeploymentOptions) As IAsyncOperationWithProgress(Of DeploymentResultDeploymentProgress)

Parameters

mainPackageFullName
String String

A string that specifies the full name of the main package to be registered.

dependencyPackageFullNames
IEnumerable<String> IEnumerable<String>

Strings that specify the full names of the dependency packages to be registered.

deploymentOptions
DeploymentOptions DeploymentOptions

A DeploymentOptions -typed value that specifies the package deployment option.

Returns

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.

Additional features and requirements

Capabilities
packageManagement

Remarks

To hide specifics about the manifest of a bundle package, instead of calling RegisterPackageAsync, you can call RegisterPackageByFullNameAsync to register a package by its full name. Bundle packages and regular packages are both referenced by the common package full name and thus registration by full name reduces the amount of domain knowledge required by the caller.

RegisterPackageByFullNameAsync can't install a package for any user other than the caller. The dependencyPackageFullNames can contain 0 elements if there aren't any dependency packages.