共用方式為


MediaProtectionManager.RebootNeeded 事件

定義

在更新元件之後需要重新開機時引發。

public:
 virtual event RebootNeededEventHandler ^ RebootNeeded;
// Register
event_token RebootNeeded(RebootNeededEventHandler const& handler) const;

// Revoke with event_token
void RebootNeeded(event_token const* cookie) const;

// Revoke with event_revoker
MediaProtectionManager::RebootNeeded_revoker RebootNeeded(auto_revoke_t, RebootNeededEventHandler const& handler) const;
public event RebootNeededEventHandler RebootNeeded;
function onRebootNeeded(eventArgs) { /* Your code */ }
mediaProtectionManager.addEventListener("rebootneeded", onRebootNeeded);
mediaProtectionManager.removeEventListener("rebootneeded", onRebootNeeded);
- or -
mediaProtectionManager.onrebootneeded = onRebootNeeded;
Public Custom Event RebootNeeded As RebootNeededEventHandler 

事件類型

適用於