AppInstallManager クラス

定義

プログラムによってアプリをインストールするためのメンバーを提供します。これには、アプリのインストールを開始し、現在進行中のアプリのインストールの一覧を取得する機能が含まれます。

public ref class AppInstallManager sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AppInstallManager final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class AppInstallManager final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AppInstallManager
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class AppInstallManager
function AppInstallManager()
Public NotInheritable Class AppInstallManager
継承
Object Platform::Object IInspectable AppInstallManager
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)
アプリの機能
runFullTrust

注釈

重要

この API へのアクセスは、Microsoft によって開発されたアプリに制限されているプライベート機能によって保護されます。

バージョン履歴

Windows のバージョン SDK バージョン 追加された値
1511 10586 Cancel(String,String)
1511 10586 GetIsAppAllowedToInstallAsync(String,String,String,String)
1511 10586 Pause(String,String)
1511 10586 Restart(String,String)
1511 10586 SearchForAllUpdatesAsync(String)
1511 10586 SearchForUpdatesAsync(String,String,String,String)
1511 10586 StartAppInstallAsync(String,String,Boolean,Boolean,String,String,String)
1511 10586 UpdateAppByPackageFamilyNameAsync(String,String)
1607 14393 GetIsAppAllowedToInstallForUserAsync
1607 14393 GetIsApplicableForUserAsync
1607 14393 MoveToFrontOfDownloadQueue
1607 14393 SearchForAllUpdatesForUserAsync(User,String)
1607 14393 SearchForUpdatesForUserAsync(User,String,String,String,String)
1607 14393 StartProductInstallAsync(String,String,String,String,Boolean,Boolean,String,PackageVolume)
1607 14393 StartProductInstallForUserAsync(User,String,String,String,String,Boolean,String,PackageVolume)
1607 14393 UpdateAppByPackageFamilyNameForUserAsync
1703 15063 AppInstallItemsWithGroupSupport
1703 15063 GetFreeDeviceEntitlementAsync
1703 15063 GetFreeUserEntitlementAsync
1703 15063 GetFreeUserEntitlementForUserAsync
1803 17134 GetIsPackageIdentityAllowedToInstallAsync
1803 17134 GetIsPackageIdentityAllowedToInstallForUserAsync
1803 17134 SearchForAllUpdatesAsync(String,String,AppUpdateOptions)
1803 17134 SearchForAllUpdatesForUserAsync(User,String,String,AppUpdateOptions)
1803 17134 SearchForUpdatesAsync(String,String,String,String,AppUpdateOptions)
1803 17134 SearchForUpdatesForUserAsync(User,String,String,String,String,AppUpdateOptions)
1803 17134 StartProductInstallAsync(String,String,String,String,AppInstallOptions)
1803 17134 StartProductInstallForUserAsync(User,String,String,String,String,AppInstallOptions)
1809 17763 CanInstallForAllUsers

コンストラクター

AppInstallManager()

AppInstallManager クラスの新しいインスタンスを作成して初期化します。

プロパティ

AcquisitionIdentity

アプリのインストールに関連付けられているユーザー ID を取得または設定します。

AppInstallItems

現在インストール キュー内にあるすべてのアプリに関する情報を取得します。

AppInstallItemsWithGroupSupport

インストール キューに現在存在する 1 つのアプリ バンドルの一部であるすべてのアプリに関する情報を取得します。

AutoUpdateSetting

現在のコンピューターまたはデバイス上のアプリの自動更新設定を取得または設定します。

CanInstallForAllUsers

呼び出し元アプリに管理者特権があるかどうかを示す値を取得または設定します。これにより、すべてのユーザーのアプリのインストールが成功します。

メソッド

Cancel(String)

指定したアプリのインストールを取り消します。

Cancel(String, String)

テレメトリ データを生成するオプションを使用して、指定したアプリのインストールを取り消します。

GetFreeDeviceEntitlementAsync(String, String, String)

現在のデバイス上のすべてのユーザーに、指定したアプリの無料エンタイトルメントを付与します。

GetFreeUserEntitlementAsync(String, String, String)

指定したアプリの無料エンタイトルメントを現在のユーザーに付与します。

GetFreeUserEntitlementForUserAsync(User, String, String, String)

指定したユーザーに、指定したアプリの無料エンタイトルメントを付与します。

GetIsAppAllowedToInstallAsync(String)

指定したアプリが現在のコンピューターまたはデバイスにインストールするアクセス許可を持っているかどうかを判断します。

GetIsAppAllowedToInstallAsync(String, String, String, String)

指定したアプリに、現在のコンピューターまたはデバイスにインストールするアクセス許可があるかどうかを指定します。テレメトリ データを生成するオプションを指定します。

GetIsAppAllowedToInstallForUserAsync(User, String, String, String, String)

指定したアプリに、指定したユーザーの現在のコンピューターまたはデバイスにインストールするアクセス許可があるかどうかを指定します。テレメトリ データを生成するオプションを指定します。

GetIsApplicableAsync(String, String)

指定したアプリを現在のコンピューターまたはデバイスにインストールできるかどうかを決定します。

GetIsApplicableForUserAsync(User, String, String)

指定したユーザーの現在のコンピューターまたはデバイスに、指定したアプリをインストールできるかどうかを決定します。

GetIsPackageIdentityAllowedToInstallAsync(String, String, String)

指定した ID 情報を持つパッケージを現在のデバイスにインストールできるかどうかを示す値を返します。

GetIsPackageIdentityAllowedToInstallForUserAsync(User, String, String, String)

指定した ID 情報を持つパッケージが、指定したユーザーの現在のデバイスにインストールできるかどうかを示す値を返します。

IsStoreBlockedByPolicyAsync(String, String)

指定したアプリが現在のコンピューターまたはデバイスのポリシーによってブロックされているかどうかを判断します。

MoveToFrontOfDownloadQueue(String, String)

指定したアプリをダウンロード キューの先頭に移動します。

Pause(String)

指定したアプリのインストールを一時停止します。

Pause(String, String)

テレメトリ データを生成するオプションを使用して、指定したアプリのインストールを一時停止します。

Restart(String)

指定したアプリのインストールを再起動します。

Restart(String, String)

テレメトリ データを生成するオプションを使用して、指定したアプリのインストールを再起動します。

SearchForAllUpdatesAsync()

現在のコンピューターまたはデバイスにインストールされているアプリに対して使用可能なすべての更新プログラムを検索します。

SearchForAllUpdatesAsync(String)

テレメトリ データを生成するオプションを使用して、現在のコンピューターまたはデバイスにインストールされているアプリに対して使用可能なすべての更新プログラムを検索します。

SearchForAllUpdatesAsync(String, String, AppUpdateOptions)

現在のコンピューターまたはデバイスにインストールされているアプリに対して使用可能なすべての更新プログラムを検索し、アプリの強制的な再起動とテレメトリ データを生成するオプションを使用します。

SearchForAllUpdatesForUserAsync(User, String)

テレメトリ データを生成するオプションを使用して、現在のコンピューターまたはデバイスにインストールされているアプリに対して使用可能なすべての更新プログラムを検索します。

SearchForAllUpdatesForUserAsync(User, String, String, AppUpdateOptions)

指定したユーザーの現在のコンピューターまたはデバイスにインストールされているアプリに対して使用可能なすべての更新プログラムを検索し、アプリの強制再起動とテレメトリ データを生成するオプションを使用します。

SearchForUpdatesAsync(String, String)

指定したアプリの更新プログラムを検索します。

SearchForUpdatesAsync(String, String, String, String)

テレメトリ データを生成するオプションを使用して、指定したアプリの更新プログラムを検索します。

SearchForUpdatesAsync(String, String, String, String, AppUpdateOptions)

指定したアプリの更新プログラムを検索します。アプリの強制再起動を許可する機能と、テレメトリ データを生成するオプションを使用します。

SearchForUpdatesForUserAsync(User, String, String, String, String)

テレメトリ データを生成するオプションを使用して、指定したアプリとユーザーの更新プログラムを検索します。

SearchForUpdatesForUserAsync(User, String, String, String, String, AppUpdateOptions)

指定したアプリとユーザーの更新プログラムを検索します。アプリの強制再起動を許可する機能と、テレメトリ データを生成するオプションを使用します。

StartAppInstallAsync(String, String, Boolean, Boolean)

指定したアプリのインストールを開始します。

StartAppInstallAsync(String, String, Boolean, Boolean, String, String, String)

テレメトリ データを生成するオプションを使用して、指定したアプリのインストールを開始します。

StartProductInstallAsync(String, String, String, String, AppInstallOptions)

指定したアプリまたはアプリ バンドルのインストールを開始します。これにより、アプリの強制再起動を許可するかどうかなど、追加のインストール オプションを指定できます。

StartProductInstallAsync(String, String, String, String, Boolean, Boolean, String, PackageVolume)

指定したアプリまたはアプリ バンドルのインストールを開始します。

StartProductInstallForUserAsync(User, String, String, String, String, AppInstallOptions)

指定したユーザーの指定したアプリまたはアプリ バンドルのインストールを開始します。これにより、アプリの強制再起動を許可するかどうかなどの追加のインストール オプションを指定できます。

StartProductInstallForUserAsync(User, String, String, String, String, Boolean, Boolean, String, PackageVolume)

指定したユーザーの指定したアプリまたはアプリ バンドルのインストールを開始します。

UpdateAppByPackageFamilyNameAsync(String)

パッケージ ファミリ名で指定されたアプリの更新を開始します。

UpdateAppByPackageFamilyNameAsync(String, String)

テレメトリ データを生成するオプションを使用して、パッケージ ファミリ名で指定されたアプリの更新を開始します。

UpdateAppByPackageFamilyNameForUserAsync(User, String, String)

テレメトリ データを生成するオプションを使用して、パッケージ ファミリ名で指定された特定のユーザーのアプリの更新を開始します。

イベント

ItemCompleted

アプリのインストールが完了したときに発生します。

ItemStatusChanged

インストール キュー内のアプリの状態が変更されたときに発生します。

適用対象