WindowsUpdateManager.ProgressChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
更新的进度更改时引发。
// Register
event_token ProgressChanged(TypedEventHandler<WindowsUpdateManager, WindowsUpdateProgressChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void ProgressChanged(event_token const* cookie) const;
// Revoke with event_revoker
WindowsUpdateManager::ProgressChanged_revoker ProgressChanged(auto_revoke_t, TypedEventHandler<WindowsUpdateManager, WindowsUpdateProgressChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<WindowsUpdateManager,WindowsUpdateProgressChangedEventArgs> ProgressChanged;
function onProgressChanged(eventArgs) { /* Your code */ }
windowsUpdateManager.addEventListener("progresschanged", onProgressChanged);
windowsUpdateManager.removeEventListener("progresschanged", onProgressChanged);
- or -
windowsUpdateManager.onprogresschanged = onProgressChanged;
Public Custom Event ProgressChanged As TypedEventHandler(Of WindowsUpdateManager, WindowsUpdateProgressChangedEventArgs)