PackageManager.StagePackageAsync 方法

定义

重载

StagePackageAsync(Uri, IIterable<Uri>)

在不注册包的情况下将 暂存到系统。

StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions)

在不注册包的情况下将 暂存到系统。

StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume)

在不注册包的情况下将 暂存到系统。

StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>)

在不注册包的情况下将 暂存到系统。

StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>, IIterable<Uri>)

在不注册包的情况下将 暂存到系统。

StagePackageAsync(Uri, IIterable<Uri>)

在不注册包的情况下将 暂存到系统。

public:
 virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ StagePackageAsync(Uri ^ packageUri, IIterable<Uri ^> ^ dependencyPackageUris) = StagePackageAsync;
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> StagePackageAsync(Uri const& packageUri, IIterable<Uri> const& dependencyPackageUris);
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> StagePackageAsync(System.Uri packageUri, IEnumerable<System.Uri> dependencyPackageUris);
function stagePackageAsync(packageUri, dependencyPackageUris)
Public Function StagePackageAsync (packageUri As Uri, dependencyPackageUris As IEnumerable(Of Uri)) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)

参数

packageUri
Uri Uri

main包的源 URI。

dependencyPackageUris

IIterable<Uri>

IEnumerable<Uri>

依赖项包的源 URI。 如果没有依赖项包或已暂存依赖项包,则此参数可以为 null。

返回

部署请求的状态。 DeploymentResult 包含部署操作的最终返回值(完成后)。 DeploymentProgress 可用于获取整个部署操作过程中的完成百分比。

注解

阶段操作会将包有效负载提取到 %ProgramFiles%\WindowsApps 下的磁盘。

另请参阅

适用于

StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions)

在不注册包的情况下将 暂存到系统。

public:
 virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ StagePackageAsync(Uri ^ packageUri, IIterable<Uri ^> ^ dependencyPackageUris, DeploymentOptions deploymentOptions) = StagePackageAsync;
/// [Windows.Foundation.Metadata.Overload("StagePackageWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> StagePackageAsync(Uri const& packageUri, IIterable<Uri> const& dependencyPackageUris, DeploymentOptions const& deploymentOptions);
[Windows.Foundation.Metadata.Overload("StagePackageWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> StagePackageAsync(System.Uri packageUri, IEnumerable<System.Uri> dependencyPackageUris, DeploymentOptions deploymentOptions);
function stagePackageAsync(packageUri, dependencyPackageUris, deploymentOptions)
Public Function StagePackageAsync (packageUri As Uri, dependencyPackageUris As IEnumerable(Of Uri), deploymentOptions As DeploymentOptions) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)

参数

packageUri
Uri Uri

main包的源 URI。

dependencyPackageUris

IIterable<Uri>

IEnumerable<Uri>

依赖项包的源 URI。 如果没有依赖项包或已暂存依赖项包,则此参数可以为 null。

deploymentOptions
DeploymentOptions

使用按位 OR 操作组合的 DeploymentOptions 类型的值的组合。 生成的值指定包部署选项。

返回

部署请求的状态。 DeploymentResult 包含部署操作的最终返回值(完成后)。 DeploymentProgress 可用于获取整个部署操作过程中的完成百分比。

属性

另请参阅

适用于

StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume)

在不注册包的情况下将 暂存到系统。

public:
 virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ StagePackageAsync(Uri ^ packageUri, IIterable<Uri ^> ^ dependencyPackageUris, DeploymentOptions deploymentOptions, PackageVolume ^ targetVolume) = StagePackageAsync;
/// [Windows.Foundation.Metadata.Overload("StagePackageToVolumeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> StagePackageAsync(Uri const& packageUri, IIterable<Uri> const& dependencyPackageUris, DeploymentOptions const& deploymentOptions, PackageVolume const& targetVolume);
[Windows.Foundation.Metadata.Overload("StagePackageToVolumeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> StagePackageAsync(System.Uri packageUri, IEnumerable<System.Uri> dependencyPackageUris, DeploymentOptions deploymentOptions, PackageVolume targetVolume);
function stagePackageAsync(packageUri, dependencyPackageUris, deploymentOptions, targetVolume)
Public Function StagePackageAsync (packageUri As Uri, dependencyPackageUris As IEnumerable(Of Uri), deploymentOptions As DeploymentOptions, targetVolume As PackageVolume) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)

参数

packageUri
Uri Uri

main包的源 URI。

dependencyPackageUris

IIterable<Uri>

IEnumerable<Uri>

依赖项包的源 URI。 如果没有依赖项包或已暂存依赖项包,则此参数可以为 null。

deploymentOptions
DeploymentOptions

DeploymentOptions 枚举中的枚举值的按位组合。 生成的值指定包部署选项。

targetVolume
PackageVolume

要暂暂暂包的目标卷。

返回

一个 对象,调用方可以观察该对象,用于跟踪调用的进度和完成情况。 对象实现 IAsyncOperationWithProgress 模式。

属性

另请参阅

适用于

StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>)

在不注册包的情况下将 暂存到系统。

public:
 virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ StagePackageAsync(Uri ^ packageUri, IIterable<Uri ^> ^ dependencyPackageUris, DeploymentOptions deploymentOptions, PackageVolume ^ targetVolume, IIterable<Platform::String ^> ^ optionalPackageFamilyNames, IIterable<Uri ^> ^ externalPackageUris) = StagePackageAsync;
/// [Windows.Foundation.Metadata.DefaultOverload]
/// [Windows.Foundation.Metadata.Overload("StagePackageToVolumeAndOptionalPackagesAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> StagePackageAsync(Uri const& packageUri, IIterable<Uri> const& dependencyPackageUris, DeploymentOptions const& deploymentOptions, PackageVolume const& targetVolume, IIterable<winrt::hstring> const& optionalPackageFamilyNames, IIterable<Uri> const& externalPackageUris);
[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("StagePackageToVolumeAndOptionalPackagesAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> StagePackageAsync(System.Uri packageUri, IEnumerable<System.Uri> dependencyPackageUris, DeploymentOptions deploymentOptions, PackageVolume targetVolume, IEnumerable<string> optionalPackageFamilyNames, IEnumerable<System.Uri> externalPackageUris);
function stagePackageAsync(packageUri, dependencyPackageUris, deploymentOptions, targetVolume, optionalPackageFamilyNames, externalPackageUris)
Public Function StagePackageAsync (packageUri As Uri, dependencyPackageUris As IEnumerable(Of Uri), deploymentOptions As DeploymentOptions, targetVolume As PackageVolume, optionalPackageFamilyNames As IEnumerable(Of String), externalPackageUris As IEnumerable(Of Uri)) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)

参数

packageUri
Uri Uri

main包的源 URI。

dependencyPackageUris

IIterable<Uri>

IEnumerable<Uri>

依赖项包的源 URI。 如果没有依赖项包或已暂存依赖项包,则此参数可以为 null。

deploymentOptions
DeploymentOptions

DeploymentOptions 枚举中的枚举值的按位组合。 生成的值指定包部署选项。

targetVolume
PackageVolume

要暂暂暂包的目标卷。

optionalPackageFamilyNames

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

指定要暂main捆绑包中的可选包系列名称的字符串。

externalPackageUris

IIterable<Uri>

IEnumerable<Uri>

要暂main捆绑包中其他包的源 URI。

返回

一个 对象,调用方可以观察该对象,用于跟踪调用的进度和完成情况。 对象实现 IAsyncOperationWithProgress 模式。

属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

另请参阅

适用于

StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>, IIterable<Uri>)

在不注册包的情况下将 暂存到系统。

public:
 virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ StagePackageAsync(Uri ^ packageUri, IIterable<Uri ^> ^ dependencyPackageUris, DeploymentOptions options, PackageVolume ^ targetVolume, IIterable<Platform::String ^> ^ optionalPackageFamilyNames, IIterable<Uri ^> ^ packageUrisToInstall, IIterable<Uri ^> ^ relatedPackageUris) = StagePackageAsync;
/// [Windows.Foundation.Metadata.Overload("StagePackageToVolumeAndRelatedSetAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> StagePackageAsync(Uri const& packageUri, IIterable<Uri> const& dependencyPackageUris, DeploymentOptions const& options, PackageVolume const& targetVolume, IIterable<winrt::hstring> const& optionalPackageFamilyNames, IIterable<Uri> const& packageUrisToInstall, IIterable<Uri> const& relatedPackageUris);
[Windows.Foundation.Metadata.Overload("StagePackageToVolumeAndRelatedSetAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> StagePackageAsync(System.Uri packageUri, IEnumerable<System.Uri> dependencyPackageUris, DeploymentOptions options, PackageVolume targetVolume, IEnumerable<string> optionalPackageFamilyNames, IEnumerable<System.Uri> packageUrisToInstall, IEnumerable<System.Uri> relatedPackageUris);
function stagePackageAsync(packageUri, dependencyPackageUris, options, targetVolume, optionalPackageFamilyNames, packageUrisToInstall, relatedPackageUris)
Public Function StagePackageAsync (packageUri As Uri, dependencyPackageUris As IEnumerable(Of Uri), options As DeploymentOptions, targetVolume As PackageVolume, optionalPackageFamilyNames As IEnumerable(Of String), packageUrisToInstall As IEnumerable(Of Uri), relatedPackageUris As IEnumerable(Of Uri)) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)

参数

packageUri
Uri Uri

main包的源 URI。

dependencyPackageUris

IIterable<Uri>

IEnumerable<Uri>

要添加的框架依赖项的 URI。 如果没有依赖项包,或者如果已注册依赖项包,则此参数可以为 null。

options
DeploymentOptions

包的部署选项。

targetVolume
PackageVolume

将包添加到的卷。

optionalPackageFamilyNames

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

要暂main捆绑包中的包系列名称。

packageUrisToInstall

IIterable<Uri>

IEnumerable<Uri>

relatedPackageUris

IIterable<Uri>

IEnumerable<Uri>

应暂暂main捆绑包中其他包的 URI。

返回

部署请求的状态。 DeploymentResult 包含部署操作的最终返回值(完成后)。 DeploymentProgress 可用于获取整个部署操作过程中的完成百分比。

属性

Windows 要求

设备系列
Windows 10 Fall Creators Update (在 10.0.16299.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v5.0 中引入)

另请参阅

适用于