PackageManager.RegisterPackageByFamilyNameAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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
字串,指定要註冊之主要封裝的系列名稱。
指定要註冊之相依性套件系列名稱的字串。
- deploymentOptions
- DeploymentOptions
指定封裝部署選項 的 DeploymentOptions型別值。
- appDataVolume
- PackageVolume
要儲存該應用程式資料的套件磁片區。
字串,指定要註冊之主要套件組合的選擇性套件系列名稱。
傳回
部署進度的報告。 物件會實作 IAsyncOperationWithProgress 模式。
- 屬性
Windows 需求
裝置系列 |
Windows 10 Creators Update (已於 10.0.15063.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)
|