InstallationManager.RegisterPackageAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为当前用户注册 (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)
参数
- dependencyPackageUris
依赖项包的路径。 如果没有依赖项包,或者如果已注册依赖项包,则此参数可以为 null。 将 DeploymentOptions 设置为 DevelopmentMode 时,将此参数保留为 null。
- deploymentOptions
- DeploymentOptions
用于修改部署操作的选项。
返回
Windows.Foundation.IAsyncOperationWithProgress<Windows.Phone.Management.Deployment.PackageInstallResult,unsigned int>
一个 表示异步部署操作并包含进度更新的 对象。