Megosztás a következőn keresztül:


AppInstallerManager Class

Definition

Provides APIs for updating app installer settings such as automatic updates.

public ref class AppInstallerManager sealed
/// [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 AppInstallerManager final
[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 AppInstallerManager
Public NotInheritable Class AppInstallerManager
Inheritance
Object Platform::Object IInspectable AppInstallerManager
Attributes

Windows requirements

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

Methods

ClearAutoUpdateSettings(String)

Completely removes any saved auto-update information from the package

GetDefault()

Retrieves an instance of AppInstallerManager with default priority.

GetForSystem()

Retrieves an instance of AppInstallerManager with system priority.

PauseAutoUpdatesUntil(String, DateTime)

Pauses automatic updates for the specified package until the specified date and time.

SetAutoUpdateSettings(String, AutoUpdateSettingsOptions)

Sets the auto update settings for the specified package.

Applies to