PackageManager.RegisterPackageAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RegisterPackageAsync(Uri, IIterable<Uri>, DeploymentOptions) |
使用指定的部署选项为当前用户注册包 (main包) 及其依赖项包。 |
RegisterPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume) |
使用指定的部署选项,将包 (main包) 及其依赖项包注册到当前用户的指定卷上。 |
RegisterPackageAsync(Uri, IIterable<Uri>, DeploymentOptions)
public:
virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ RegisterPackageAsync(Uri ^ manifestUri, IIterable<Uri ^> ^ dependencyPackageUris, DeploymentOptions deploymentOptions) = RegisterPackageAsync;
/// [Windows.Foundation.Metadata.Overload("RegisterPackageAsync")]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> RegisterPackageAsync(Uri const& manifestUri, IIterable<Uri> const& dependencyPackageUris, DeploymentOptions const& deploymentOptions);
[Windows.Foundation.Metadata.Overload("RegisterPackageAsync")]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> RegisterPackageAsync(System.Uri manifestUri, IEnumerable<System.Uri> dependencyPackageUris, DeploymentOptions deploymentOptions);
function registerPackageAsync(manifestUri, dependencyPackageUris, deploymentOptions)
Public Function RegisterPackageAsync (manifestUri As Uri, dependencyPackageUris As IEnumerable(Of Uri), deploymentOptions As DeploymentOptions) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)
参数
- dependencyPackageUris
依赖项包的 URI。
- deploymentOptions
- DeploymentOptions
DeploymentOptions 枚举中指定部署选项的枚举值的按位组合。
返回
一个 对象,调用方可以观察该对象来跟踪调用的进度和完成情况。 对象实现 IAsyncOperationWithProgress 模式。
- 属性
另请参阅
适用于
RegisterPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume)
public:
virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ RegisterPackageAsync(Uri ^ manifestUri, IIterable<Uri ^> ^ dependencyPackageUris, DeploymentOptions deploymentOptions, PackageVolume ^ appDataVolume) = RegisterPackageAsync;
/// [Windows.Foundation.Metadata.Overload("RegisterPackageWithAppDataVolumeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> RegisterPackageAsync(Uri const& manifestUri, IIterable<Uri> const& dependencyPackageUris, DeploymentOptions const& deploymentOptions, PackageVolume const& appDataVolume);
[Windows.Foundation.Metadata.Overload("RegisterPackageWithAppDataVolumeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> RegisterPackageAsync(System.Uri manifestUri, IEnumerable<System.Uri> dependencyPackageUris, DeploymentOptions deploymentOptions, PackageVolume appDataVolume);
function registerPackageAsync(manifestUri, dependencyPackageUris, deploymentOptions, appDataVolume)
Public Function RegisterPackageAsync (manifestUri As Uri, dependencyPackageUris As IEnumerable(Of Uri), deploymentOptions As DeploymentOptions, appDataVolume As PackageVolume) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)
参数
- dependencyPackageUris
依赖项包的 URI。
- deploymentOptions
- DeploymentOptions
DeploymentOptions 枚举中指定部署选项的枚举值的按位组合。
- appDataVolume
- PackageVolume
应用存储当前用户数据的卷。
返回
一个 对象,调用方可以观察该对象来跟踪调用的进度和完成情况。 对象实现 IAsyncOperationWithProgress 模式。
- 属性