PackageManager.RegisterPackagesByFullNameAsync 方法

定义

按当前用户的全名注册指定的

public:
 virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ RegisterPackagesByFullNameAsync(IIterable<Platform::String ^> ^ packageFullNames, RegisterPackageOptions ^ options) = RegisterPackagesByFullNameAsync;
/// [Windows.Foundation.Metadata.Overload("RegisterPackagesByFullNameAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> RegisterPackagesByFullNameAsync(IIterable<winrt::hstring> const& packageFullNames, RegisterPackageOptions const& options);
[Windows.Foundation.Metadata.Overload("RegisterPackagesByFullNameAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> RegisterPackagesByFullNameAsync(IEnumerable<string> packageFullNames, RegisterPackageOptions options);
function registerPackagesByFullNameAsync(packageFullNames, options)
Public Function RegisterPackagesByFullNameAsync (packageFullNames As IEnumerable(Of String), options As RegisterPackageOptions) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)

参数

packageFullNames

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

要注册的包的全名列表。

options
RegisterPackageOptions

操作的包注册选项。

返回

部署请求的状态。 DeploymentResult 包含部署操作的最终返回值(完成后)。 DeploymentProgress 可用于获取整个部署操作过程中的完成百分比。

属性

Windows 要求

设备系列
Windows 10, version 2004 (在 10.0.19041.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v10.0 中引入)

适用于

另请参阅