Share via


AutoUpdateSettingsOptions Class

Definition

Represents the automatic update settings for a package.

public ref class AutoUpdateSettingsOptions sealed
/// [Windows.Foundation.Metadata.Activatable(851968, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 851968)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AutoUpdateSettingsOptions final
[Windows.Foundation.Metadata.Activatable(851968, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 851968)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AutoUpdateSettingsOptions
function AutoUpdateSettingsOptions()
Public NotInheritable Class AutoUpdateSettingsOptions
Inheritance
Object Platform::Object IInspectable AutoUpdateSettingsOptions
Attributes

Windows requirements

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

Remarks

Pass this object into the AppInstallerManager.SetAutoUpdateSettings method to create or update automatic update settings.

Constructors

AutoUpdateSettingsOptions()

Initializes a new instance of the AutoUpdateSettingsOptions class.

Properties

AppInstallerUri

Gets or sets the a Uri object pointing to the App Installer file represented by the AppInstallerInfo object.

AutomaticBackgroundTask

Gets a boolean value indicating whether the deployment service checks for app updates in the background.

DependencyPackageUris

Gets a read-only list of Uri objects pointing to the dependency packages that are required for successful deployment of the related set.

ForceUpdateFromAnyVersion

Gets or sets a boolean value indicating whether the app version can be both incremented and decremented. If the value is false, the app can only move to a higher version.

HoursBetweenUpdateChecks

Gets or sets an integer value specifying the frequency with which the the deployment service will check for an update to the App Installer file.

IsAutoRepairEnabled

Gets or sets a value specifying if the OS and deployment service can automatically perform a repair when the package is marked for remediation.

OnLaunch

Gets or sets a boolean value specifying whether the deployment service will check for an update to the App Installer file when the app launches.

OptionalPackageUris

Gets a read-only list of Uri objects pointing to the optional packages that will be installed along with the main package.

RepairUris

Gets a read-only list of Uri objects pointing to App Installer files for repairing an installation.

ShowPrompt

Gets or sets a boolean value specifying whether the deployment service will show a prompt informing the user about an update.

UpdateBlocksActivation

Gets or sets a boolean value specifying whether the deployment service will stop the user from launching the application until a pending update has been applied.

UpdateUris

Gets a read-only list of Uri objects pointing to App Installer files for updating an installation.

Version

Gets or sets a PackageVersion object expressing the version of the App Installer file represented by the AppInstallerInfo object.

Methods

CreateFromAppInstallerInfo(AppInstallerInfo)

Creates a new instance of the AutoUpdateSettingsOptions with values from the provided AppInstallerInfo class.

Applies to