共用方式為


InstallationManager 類別

定義

管理手機的應用程式安裝。

public ref class InstallationManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class InstallationManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class InstallationManager
Public Class InstallationManager
繼承
Object Platform::Object IInspectable InstallationManager
屬性

Windows 需求

裝置系列
Windows Mobile Extension SDK (已於 10.0.10240.0 引進)
API contract
Windows.Phone.PhoneContract (已於 v1.0 引進)

備註

使用此類別可從特定應用程式發行者尋找應用程式、安裝應用程式和取得擱置中的應用程式安裝。

方法

AddPackageAsync(String, Uri)

啟動應用程式標題和位置 URI 所指定應用程式的安裝程式。

AddPackageAsync(String, Uri, String, String, Uri)

此 API 不適合直接從您的程式碼使用。

FindPackages()

擷取所有使用者所安裝之所有套件的相關資訊。

FindPackages(String, String)

尋找具有指定名稱和發行者的所有已安裝套件。

FindPackagesForCurrentPublisher()

傳回與呼叫此方法的應用程式具有相同發行者識別碼的所有應用程式套件。

GetPendingPackageInstalls()

傳回目前正在進行的所有應用程式安裝。

RegisterPackageAsync(Uri, IIterable<Uri>, DeploymentOptions)

註冊套件 (主要套件) 及其目前使用者的相依性套件。

RemovePackageAsync(String, RemovalOptions)

以非同步方式移除目前使用者的套件,並在移除作業上接收進度和狀態訊息。 如果使用者未安裝其他套件,也會移除使用者的相依性套件。

適用於