PowerGridForecast.ForecastUpdated 이벤트

정의

새 예측 페이로드가 준비되면 구독자에게 알리는 이벤트입니다. 앱이 이 알림을 받으면 GetForecast를 호출할 것으로 예상됩니다.

// Register
static event_token ForecastUpdated(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
static void ForecastUpdated(event_token const* cookie) const;

// Revoke with event_revoker
static PowerGridForecast::ForecastUpdated_revoker ForecastUpdated(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> ForecastUpdated;
function onForecastUpdated(eventArgs) { /* Your code */ }
Windows.Devices.Power.PowerGridForecast.addEventListener("forecastupdated", onForecastUpdated);
Windows.Devices.Power.PowerGridForecast.removeEventListener("forecastupdated", onForecastUpdated);
- or -
Windows.Devices.Power.PowerGridForecast.onforecastupdated = onForecastUpdated;
Public Shared Custom Event ForecastUpdated As EventHandler(Of Object) 

이벤트 유형

적용 대상