You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The types in this namespace allow users to opt in or out of receiving Windows Insider Preview builds on their device. The APIs are intended to be used by IoT original equipment manufacturers (OEMs).
13
+
The Windows.Management.Update namespace provides APIs for managing Windows Update operations across Windows devices. It serves two distinct purposes:
14
14
15
-
## -remarks
15
+
***General update management:** Use classes such as [WindowsUpdateManager](./windowsupdatemanager.md), [WindowsUpdateAdministrator](./windowsupdateadministrator), and [WindowsUpdate](./windowsupdate.md) to discover, download, install, and monitor updates on Windows desktop, Server, and IoT devices - covering both Preview and non-Preview builds.
16
+
***IoT Insider Preview enablement:** Use [PreviewBuildsManager](./previewbuildsmanager.md) and [PreviewBuildsState](./previewbuildsstate.md) to opt IoT devices into Windows Insider Preview builds and retrieve registration state. It's expected that the OEM of the device will create a settings page within the [Windows Device Portal](https://learn.microsoft.com/windows/iot-core/manage-your-device/deviceportal) for device configuration properties.
17
+
18
+
These API groups coexist in the same namespace but target different scenarios. Choose the correct set based on your device type and update requirements.
19
+
20
+
## -choosing the right API
21
+
Use this guide to select the correct classes:
16
22
17
-
These APIs allow an IoT device to receive Windows Insider Preview builds. It's expected that the OEM of the device will create a settings page within the [Windows Device Portal](/windows/iot-core/manage-your-device/deviceportal) for device configuration properties. At a high level, information from [PreviewBuildsState](./previewbuildsstate.md) will be read by the device, then displayed to the user, and then used to register the user's account to the device. After registration, all settings management will be done online through the Windows Insider Program instead of on the device itself.
23
+
***Discover and install updates on desktop/Server/IoT** → [WindowsUpdateManager](./windowsupdatemanager.md) + [WindowsUpdate](./windowsupdate.md)
24
+
***Apply administrative visibility or policy** → [WindowsUpdateAdministrator](./windowsupdateadministrator)
25
+
***Monitor update progress without polling** → Subscribe to [WindowsUpdateManager](./windowsupdatemanager.md) events
26
+
***Enable Insider Preview on an IoT device** → [PreviewBuildsManager](./previewbuildsmanager.md) + [PreviewBuildsState](./previewbuildsstate.md)
18
27
19
28
## -examples
20
29
30
+
This C# example queries for applicable updates and starts installation.
This C# example demonstrates how a user can determine whether their device is receiving preview builds, or whether there are problems preventing the device from getting preview builds.
22
43
23
44
```csharp
@@ -35,5 +56,18 @@ public string GetErrorMessage()
35
56
returnString.Empty;
36
57
}
37
58
```
59
+
## -remarks
60
+
61
+
* Use [WindowsUpdateManager](./windowsupdatemanager.md), [WindowsUpdate](./windowsupdate.md), and [WindowsUpdateAdministrator](./windowsupdateadministrator) for general update management on all supported platforms.
62
+
*[PreviewBuildsManager](./previewbuildsmanager.md) and [PreviewBuildsState](./previewbuildsstate.md) are **IoT specific** and do not manage general updates on desktop or Server. It's expected that the OEM of the device will create a settings page within the [Windows Device Portal](/windows/iot-core/manage-your-device/deviceportal) for device configuration properties. Information from [PreviewBuildsState](./previewbuildsstate.md) will be read by the device, then displayed to the user, and then used to register the user's account to the device. After registration, all settings management will be done online through the Windows Insider Program instead of on the device itself.
63
+
* Platform availability and API contracts are documented in individual class reference pages.
64
+
65
+
| API Set | Supported Windows Build |
66
+
| --------------------------- | :-------------: |
67
+
| Preview Builds | 17134 or greater |
68
+
| Windows Update Manager | 22621 or greater |
69
+
| Windows Update Administrator | 22621 or greater |
0 commit comments