AppInstallerManager 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供 API 來更新應用程式安裝程式設定,例如自動更新。
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
- 繼承
- 屬性
Windows 需求
裝置系列 |
Windows 11 (已於 10.0.22000.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v14.0 引進)
|
方法
ClearAutoUpdateSettings(String) |
完全移除套件中儲存的任何自動更新資訊 |
GetDefault() |
擷取具有預設優先順序的 AppInstallerManager 實例。 |
GetForSystem() |
擷取具有系統優先順序的 AppInstallerManager 實例。 |
PauseAutoUpdatesUntil(String, DateTime) |
暫停指定封裝的自動更新,直到指定的日期和時間為止。 |
SetAutoUpdateSettings(String, AutoUpdateSettingsOptions) |
設定指定套件的自動更新設定。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應