共用方式為


PackageManager.RegisterPackageByFamilyNameAsync 方法

定義

註冊 套件 (主要套件) ,其系列名稱和目前使用者的相依性套件。

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)

參數

mainPackageFamilyName
String

Platform::String

winrt::hstring

字串,指定要註冊之主要封裝的系列名稱。

dependencyPackageFamilyNames

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

指定要註冊之相依性套件系列名稱的字串。

deploymentOptions
DeploymentOptions

指定封裝部署選項 的 DeploymentOptions型別值。

appDataVolume
PackageVolume

要儲存該應用程式資料的套件磁片區。

optionalPackageFamilyNames

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

字串,指定要註冊之主要套件組合的選擇性套件系列名稱。

傳回

部署進度的報告。 物件會實作 IAsyncOperationWithProgress 模式。

屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

適用於

另請參閱