Beacons.Universal.Background.MainPage.App_Suspending C# (CSharp) Метод

App_Suspending() приватный Метод

Invoked when application execution is being suspended. Application state is saved without knowing whether the application will be terminated or resumed with the contents of memory still intact.
private App_Suspending ( object sender, Windows e ) : void
sender object The source of the suspend request.
e Windows Details about the suspend request.
Результат void
        private void App_Suspending(object sender, Windows.ApplicationModel.SuspendingEventArgs e)
        {
            if (taskAdvertisementWatcher != null)
                // Always unregister the handlers to release the resources to prevent leaks.
                taskAdvertisementWatcher.Completed -= OnBackgroundTaskCompleted;
        }