共用方式為


PackageManager.RegisterPackageAsync 方法

定義

多載

RegisterPackageAsync(Uri, IIterable<Uri>, DeploymentOptions)

使用指定的部署選項,在主要 套件 (註冊 套件) 及其相依性套件。

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

使用指定的部署選項,在目前使用者的指定磁片區上註冊 套件 (主要套件) 及其相依性套件。

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)

參數

manifestUri
Uri Uri

主要封裝的 URI。

dependencyPackageUris

IIterable<Uri>

IEnumerable<Uri>

相依性套件的 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)

參數

manifestUri
Uri Uri

主要封裝的 URI。

dependencyPackageUris

IIterable<Uri>

IEnumerable<Uri>

相依性套件的 URI。

deploymentOptions
DeploymentOptions

指定部署選項之 DeploymentOptions 列舉值的位元組合。

appDataVolume
PackageVolume

應用程式儲存目前使用者資料的磁片區。

傳回

呼叫端可以觀察的物件,可追蹤呼叫的進度和完成。 物件會實作 IAsyncOperationWithProgress 模式。

屬性

另請參閱

適用於