Поделиться через


SystemSetupInfo.OutOfBoxExperienceStateChanged Событие

Определение

Возникает при изменении текущего этапа жизненного цикла при первом включении компьютера (OOBE).

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

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

// Revoke with event_revoker
static SystemSetupInfo::OutOfBoxExperienceStateChanged_revoker OutOfBoxExperienceStateChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> OutOfBoxExperienceStateChanged;
function onOutOfBoxExperienceStateChanged(eventArgs) { /* Your code */ }
Windows.System.Profile.SystemSetupInfo.addEventListener("outofboxexperiencestatechanged", onOutOfBoxExperienceStateChanged);
Windows.System.Profile.SystemSetupInfo.removeEventListener("outofboxexperiencestatechanged", onOutOfBoxExperienceStateChanged);
- or -
Windows.System.Profile.SystemSetupInfo.onoutofboxexperiencestatechanged = onOutOfBoxExperienceStateChanged;
Public Shared Custom Event OutOfBoxExperienceStateChanged As EventHandler(Of Object) 

Тип события

Примеры

См. раздел SystemSetupInfo.

Комментарии

Подписчикам гарантируется, что событие будет вызываться по крайней мере один раз во время регистрации, даже если состояние OOBE никогда не изменится. Это устраняет временной период, в котором события могут быть потеряны между запросом состояния и регистрацией для изменения состояния.

Применяется к

См. также раздел