Aracılığıyla paylaş


AppInstallerInfo.PolicySource Property

Definition

Gets a value from the AppInstallerPolicySource enumeration indicating whether the update policy specified in the AppInstallerInfo was set using from a system or default source.

public:
 property AppInstallerPolicySource PolicySource { AppInstallerPolicySource get(); };
AppInstallerPolicySource PolicySource();
public AppInstallerPolicySource PolicySource { get; }
var appInstallerPolicySource = appInstallerInfo.policySource;
Public ReadOnly Property PolicySource As AppInstallerPolicySource

Property Value

The source of the policy represented by the *AppInstallerInfo.

Windows requirements

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

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.

Applies to