WindowsUpdateManager.StartScan(Boolean) Method

Definition

Initiates a new scan for updates on the device.

public:
 virtual void StartScan(bool userInitiated) = StartScan;
void StartScan(bool const& userInitiated);
public void StartScan(bool userInitiated);
function startScan(userInitiated)
Public Sub StartScan (userInitiated As Boolean)

Parameters

userInitiated
Boolean

bool

Specifies whether the scan should be performed as if initiated by a user.

Remarks

If a scan is started with userInitiated set to true, then it will function the same as if a user had clicked "Check for updates" from the Settings page. That will result in the updates being processed at higher priority, and will bypass a variety of blocks that can apply to background scans.

If a WindowsUpdateAdministrator has been registered using RequireAdministratorApprovalForScans, then this scan attempt will be blocked, because only scans initiated via StartAdministratorScan are allowed in that mode.

Applies to