共用方式為


WindowsUpdateManager 類別

定義

用來透過回呼監視更新活動的介面,以及擷取更新歷程記錄。

public ref class WindowsUpdateManager sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Management.Update.IWindowsUpdateManagerFactory, 65536, "Windows.Management.Update.WindowsUpdateContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Management.Update.WindowsUpdateContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class WindowsUpdateManager final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Management.Update.IWindowsUpdateManagerFactory), 65536, "Windows.Management.Update.WindowsUpdateContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Management.Update.WindowsUpdateContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class WindowsUpdateManager
function WindowsUpdateManager(clientId)
Public NotInheritable Class WindowsUpdateManager
繼承
Object Platform::Object IInspectable WindowsUpdateManager
屬性

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.23504.0 引進)
API contract
Windows.Management.Update.WindowsUpdateContract (已於 v1.0 引進)

建構函式

WindowsUpdateManager(String)

建構新的 WindowsUpdateManager 物件。

屬性

IsScanning

取得值,指出 WindowsUpdateManager 是否正在主動掃描更新。

IsWorking

取得值,指出 WindowsUpdateManager 是否正在處理更新。

LastSuccessfulScanTimestamp

取得值,指出 WindowsUpdateManager上次成功的掃描時間戳記。

方法

GetApplicableUpdates()

擷取 WindowsUpdateManager目前已知的所有適用更新清單。

GetMostRecentCompletedUpdates(Int32)

擷取最近完成之更新的相關資訊。

GetMostRecentCompletedUpdatesAsync(Int32)

以非同步方式擷取最近完成之更新的相關資訊。

StartScan(Boolean)

起始裝置上更新的新掃描。

事件

ActionCompleted

更新的動作完成時引發。

AttentionRequiredReasonChanged

當更新需要注意的原因變更時引發。

ProgressChanged

當更新的進度變更時引發。

ScanCompleted

掃描更新完成時引發。

ScanningStateChanged

掃描狀態變更時引發。

WorkingStateChanged

當工作狀態變更時引發。

適用於