Application.LeavingBackground Event

Definition

Occurs when the app moves from the background to the foreground.

public:
 virtual event LeavingBackgroundEventHandler ^ LeavingBackground;
// Register
event_token LeavingBackground(LeavingBackgroundEventHandler const& handler) const;

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

// Revoke with event_revoker
LeavingBackground_revoker LeavingBackground(auto_revoke_t, LeavingBackgroundEventHandler const& handler) const;
public event LeavingBackgroundEventHandler LeavingBackground;
Public Custom Event LeavingBackground As LeavingBackgroundEventHandler 

Event Type

LeavingBackgroundEventHandler

Remarks

The LeavingBackground event runs in the same apartment it was registered in.

Applies to

See also