WindowsUpdateManager.ScanningStateChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised when the scanning state changes.
// Register
event_token ScanningStateChanged(TypedEventHandler<WindowsUpdateManager, IInspectable const&> const& handler) const;
// Revoke with event_token
void ScanningStateChanged(event_token const* cookie) const;
// Revoke with event_revoker
WindowsUpdateManager::ScanningStateChanged_revoker ScanningStateChanged(auto_revoke_t, TypedEventHandler<WindowsUpdateManager, IInspectable const&> const& handler) const;
public event TypedEventHandler<WindowsUpdateManager,object> ScanningStateChanged;
function onScanningStateChanged(eventArgs) { /* Your code */ }
windowsUpdateManager.addEventListener("scanningstatechanged", onScanningStateChanged);
windowsUpdateManager.removeEventListener("scanningstatechanged", onScanningStateChanged);
- or -
windowsUpdateManager.onscanningstatechanged = onScanningStateChanged;
Public Custom Event ScanningStateChanged As TypedEventHandler(Of WindowsUpdateManager, Object)
Event Type
Remarks
Unlike the ScanCompleted event, this event is also raised when a scan begins; so you can leverage it to detect the start of scan activity.