AppInstallerPolicySource 列挙型

定義

アプリの更新ポリシーのソースかどうかを指定します。

public enum class AppInstallerPolicySource
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 851968)]
enum class AppInstallerPolicySource
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 851968)]
public enum AppInstallerPolicySource
var value = Windows.ApplicationModel.AppInstallerPolicySource.default
Public Enum AppInstallerPolicySource
継承
AppInstallerPolicySource
属性

Windows の要件

デバイス ファミリ
Windows 11 (10.0.22000.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v14.0 で導入)

フィールド

Default 0

既定のポリシー ソース。

System 1

システム ポリシー ソース。

注釈

AppInstallerManager.GetDefault を使用してポリシーが設定されている場合、ポリシー ソースは Default です。 ポリシーが AppInstallerManager.GetForSystem を使用して設定されている場合、ポリシー ソースは System です。 ポリシーがシステム ソースから設定されている場合は、その PackageFamilyName に対して動作する AppInstallerManager メソッドもシステム ソースから呼び出す必要があります。

適用対象