Udostępnij za pośrednictwem


AppInstallerPolicySource Enum

Definition

Specifies the whether the source of the update policy for an app.

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
Inheritance
AppInstallerPolicySource
Attributes

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Fields

Name Value Description
Default 0

Default policy source.

System 1

System policy source.

Remarks

The policy source is Default if the policy was set using AppInstallerManager.GetDefault. The policy source is System if the policy was set using AppInstallerManager.GetForSystem. If a policy was set from a System source, then any of the AppInstallerManager methods acting on that PackageFamilyName must also be called from a System source.

Applies to