InstallationManager.RegisterPackageAsync 方法

定义

为当前用户注册 (main包) 及其依赖项包。

public:
 static IAsyncOperationWithProgress<PackageInstallResult ^, unsigned int> ^ RegisterPackageAsync(Uri ^ manifestUri, IIterable<Uri ^> ^ dependencyPackageUris, DeploymentOptions deploymentOptions);
 static IAsyncOperationWithProgress<PackageInstallResult, uint32_t> RegisterPackageAsync(Uri const& manifestUri, IIterable<Uri> const& dependencyPackageUris, DeploymentOptions const& deploymentOptions);
public static IAsyncOperationWithProgress<PackageInstallResult,uint> RegisterPackageAsync(System.Uri manifestUri, IEnumerable<System.Uri> dependencyPackageUris, DeploymentOptions deploymentOptions);
function registerPackageAsync(manifestUri, dependencyPackageUris, deploymentOptions)
Public Shared Function RegisterPackageAsync (manifestUri As Uri, dependencyPackageUris As IEnumerable(Of Uri), deploymentOptions As DeploymentOptions) As IAsyncOperationWithProgress(Of PackageInstallResult, UInteger)

参数

manifestUri
Uri Uri

main包的包清单的路径。

dependencyPackageUris

IIterable<Uri>

IEnumerable<Uri>

依赖项包的路径。 如果没有依赖项包,或者如果已注册依赖项包,则此参数可以为 null。 将 DeploymentOptions 设置为 DevelopmentMode 时,将此参数保留为 null。

deploymentOptions
DeploymentOptions

用于修改部署操作的选项。

返回

IAsyncOperationWithProgress<PackageInstallResult,UInt32>

Windows.Foundation.IAsyncOperationWithProgress<Windows.Phone.Management.Deployment.PackageInstallResult,unsigned int>

IAsyncOperationWithProgress<PackageInstallResult,uint32_t>

一个 表示异步部署操作并包含进度更新的 对象。

适用于