Share via


SystemSetupInfo.OutOfBoxExperienceStateChanged Ereignis

Definition

Wird ausgelöst, wenn sich die aktuelle Phase im Lebenszyklus der Out-of-Box Experience (OOBE) ändert.

// 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) 

Ereignistyp

Beispiele

Weitere Informationen finden Sie unter SystemSetupInfo.

Hinweise

Abonnenten sind garantiert, dass das Ereignis zum Zeitpunkt der Registrierung mindestens einmal ausgelöst wird, auch wenn sich der OOBE-Zustand nie ändert. Dadurch wird ein Zeitfenster verjährt, in dem Ereignisse zwischen dem Abfragen des Zustands und der Registrierung für Zustandsänderungen andernfalls verlorengehen könnten.

Gilt für:

Weitere Informationen