Share via


SystemSetupInfo.OutOfBoxExperienceStateChanged Event

Definition

Raised when the current stage in the lifecycle of the Out-of-Box Experience (OOBE) changes.

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

Event Type

Examples

See SystemSetupInfo.

Remarks

Subscribers are guaranteed that the event will be raised at least one time, at the time of registration, even if OOBE state never changes. This obviates a window of time where events could otherwise be lost between querying state and registering for state changes.

Applies to

See also