PackageManager.RegisterPackageByFamilyNameAsync(String, IIterable<String>, DeploymentOptions, PackageVolume, IIterable<String>) PackageManager.RegisterPackageByFamilyNameAsync(String, IIterable<String>, DeploymentOptions, PackageVolume, IIterable<String>) PackageManager.RegisterPackageByFamilyNameAsync(String, IIterable<String>, DeploymentOptions, PackageVolume, IIterable<String>) PackageManager.RegisterPackageByFamilyNameAsync(String, IIterable<String>, DeploymentOptions, PackageVolume, IIterable<String>) Method

Definition

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

public : IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> RegisterPackageByFamilyNameAsync(Platform::String mainPackageFamilyName, IIterable<Platform::String> dependencyPackageFamilyNames, DeploymentOptions deploymentOptions, PackageVolume appDataVolume, IIterable<Platform::String> optionalPackageFamilyNames)
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> RegisterPackageByFamilyNameAsync(winrt::hstring mainPackageFamilyName, IIterable<winrt::hstring> dependencyPackageFamilyNames, DeploymentOptions deploymentOptions, PackageVolume appDataVolume, IIterable<winrt::hstring> optionalPackageFamilyNames) const;
public IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> RegisterPackageByFamilyNameAsync(String mainPackageFamilyName, IEnumerable<String> dependencyPackageFamilyNames, DeploymentOptions deploymentOptions, PackageVolume appDataVolume, IEnumerable<String> optionalPackageFamilyNames)
Public Function RegisterPackageByFamilyNameAsync(mainPackageFamilyName As String, dependencyPackageFamilyNames As IEnumerable(Of String), deploymentOptions As DeploymentOptions, appDataVolume As PackageVolume, optionalPackageFamilyNames As IEnumerable(Of String)) As IAsyncOperationWithProgress(Of DeploymentResultDeploymentProgress)

Parameters

mainPackageFamilyName
String String

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

dependencyPackageFamilyNames
IEnumerable<String> IEnumerable<String>

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

deploymentOptions
DeploymentOptions DeploymentOptions

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

appDataVolume
PackageVolume PackageVolume

The package volume to store that app data on.

optionalPackageFamilyNames
IEnumerable<String> IEnumerable<String>

Strings that specify the optional package family names from the main bundle to be registered.

Returns

A report of the deployment progress. The object implements the IAsyncOperationWithProgress pattern.

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)