PackageManager.RegisterPackageByFullNameAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public:
virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ RegisterPackageByFullNameAsync(Platform::String ^ mainPackageFullName, IIterable<Platform::String ^> ^ dependencyPackageFullNames, DeploymentOptions deploymentOptions) = RegisterPackageByFullNameAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> RegisterPackageByFullNameAsync(winrt::hstring const& mainPackageFullName, IIterable<winrt::hstring> const& dependencyPackageFullNames, DeploymentOptions const& deploymentOptions);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> RegisterPackageByFullNameAsync(string mainPackageFullName, IEnumerable<string> dependencyPackageFullNames, DeploymentOptions deploymentOptions);
function registerPackageByFullNameAsync(mainPackageFullName, dependencyPackageFullNames, deploymentOptions)
Public Function RegisterPackageByFullNameAsync (mainPackageFullName As String, dependencyPackageFullNames As IEnumerable(Of String), deploymentOptions As DeploymentOptions) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)
参数
- mainPackageFullName
-
String
Platform::String
winrt::hstring
一个字符串,指定要注册的main包的全名。
- deploymentOptions
- DeploymentOptions
一个 DeploymentOptions 类型的值,该值指定包部署选项。
返回
部署请求的状态。 DeploymentResult 包含部署操作的最终返回值(完成后)。 DeploymentProgress 可用于获取整个部署操作过程中的完成百分比。
- 属性
Windows 要求
应用功能 |
packageManagement
|
注解
若要隐藏有关捆绑包清单的详细信息,而不是调用 RegisterPackageAsync,可以调用 RegisterPackageByFullNameAsync 以按包的全名注册包。 捆绑包和常规包都由公用包全名引用,因此按全名注册可以减少调用方所需的域知识量。
RegisterPackageByFullNameAsync 不能为调用方以外的任何用户安装包。 如果没有任何依赖项 包,dependencyPackageFullNames 可以包含 0 个元素。