PackageManager.RegisterPackagesByFullNameAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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)
参数
- options
- RegisterPackageOptions
操作的包注册选项。
返回
部署请求的状态。 DeploymentResult 包含部署操作的最终返回值(完成后)。 DeploymentProgress 可用于获取整个部署操作过程中的完成百分比。
- 属性
Windows 要求
设备系列 |
Windows 10, version 2004 (在 10.0.19041.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v10.0 中引入)
|