PackageManager.RegisterPackageByFamilyNameAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ RegisterPackageByFamilyNameAsync(Platform::String ^ mainPackageFamilyName, IIterable<Platform::String ^> ^ dependencyPackageFamilyNames, DeploymentOptions deploymentOptions, PackageVolume ^ appDataVolume, IIterable<Platform::String ^> ^ optionalPackageFamilyNames) = RegisterPackageByFamilyNameAsync;
/// [Windows.Foundation.Metadata.Overload("RegisterPackageByFamilyNameAndOptionalPackagesAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> RegisterPackageByFamilyNameAsync(winrt::hstring const& mainPackageFamilyName, IIterable<winrt::hstring> const& dependencyPackageFamilyNames, DeploymentOptions const& deploymentOptions, PackageVolume const& appDataVolume, IIterable<winrt::hstring> const& optionalPackageFamilyNames);
[Windows.Foundation.Metadata.Overload("RegisterPackageByFamilyNameAndOptionalPackagesAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> RegisterPackageByFamilyNameAsync(string mainPackageFamilyName, IEnumerable<string> dependencyPackageFamilyNames, DeploymentOptions deploymentOptions, PackageVolume appDataVolume, IEnumerable<string> optionalPackageFamilyNames);
function registerPackageByFamilyNameAsync(mainPackageFamilyName, dependencyPackageFamilyNames, deploymentOptions, appDataVolume, 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 DeploymentResult, DeploymentProgress)
Parameters
- mainPackageFamilyName
-
String
Platform::String
winrt::hstring
A string that specifies the family name of the main package to be registered.
Strings that specify the family names of the dependency packages to be registered.
- deploymentOptions
- DeploymentOptions
A DeploymentOptions-typed value that specifies the package deployment option.
- appDataVolume
- PackageVolume
The package volume to store that app data on.
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.
- Attributes
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|