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

主要封裝的來源 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

主要封裝的來源 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

主要封裝的來源 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

主要封裝的來源 URI。

dependencyPackageUris

IIterable<Uri>

IEnumerable<Uri>

相依性套件的來源 URI。 如果沒有相依性套件或相依性套件已經暫存,此參數可以是 null。

deploymentOptions
DeploymentOptions

DeploymentOptions列舉值的位元組合。 產生的值會指定封裝部署選項。

targetVolume
PackageVolume

要暫存封裝的目標磁片區。

optionalPackageFamilyNames

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

字串,指定要暫存之主要套件組合的選擇性套件系列名稱。

externalPackageUris

IIterable<Uri>

IEnumerable<Uri>

要暫存之主要套件組合中其他套件的來源 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

主要封裝的來源 URI。

dependencyPackageUris

IIterable<Uri>

IEnumerable<Uri>

要新增之架構相依性的 URI。 如果沒有相依性套件,或已經註冊相依性套件,這個參數可以是 null。

options
DeploymentOptions

封裝的部署選項。

targetVolume
PackageVolume

加入封裝的磁片區。

optionalPackageFamilyNames

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

要暫存之主要套件組合中的套件系列名稱。

packageUrisToInstall

IIterable<Uri>

IEnumerable<Uri>

relatedPackageUris

IIterable<Uri>

IEnumerable<Uri>

主要套件組合中應暫存的其他套件 URI。

傳回

部署要求的狀態。 DeploymentResult包含部署作業的最終傳回值,完成後。 DeploymentProgress可用來取得整個部署作業過程中完成的百分比。

屬性

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

另請參閱

適用於