Bagikan melalui


LeavingBackgroundEventArgs Kelas

Definisi

Menyediakan data saat aplikasi akan berhenti berjalan di latar belakang.

public ref class LeavingBackgroundEventArgs sealed : ILeavingBackgroundEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class LeavingBackgroundEventArgs final : ILeavingBackgroundEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class LeavingBackgroundEventArgs : ILeavingBackgroundEventArgs
Public NotInheritable Class LeavingBackgroundEventArgs
Implements ILeavingBackgroundEventArgs
Warisan
Object Platform::Object IInspectable LeavingBackgroundEventArgs
Atribut
Penerapan

Persyaratan Windows

Rangkaian perangkat
Windows 10 Anniversary Edition (diperkenalkan dalam 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v3.0)

Keterangan

Objek ini diakses ketika Anda menerapkan WebUIApplication.LeavingBackgroundEventHandler untuk menanggapi peristiwa WebUIApplication.leavingbackground .

Metode

GetDeferral()

Meminta penundaan sebelum aplikasi berhenti berjalan di latar belakang.

Berlaku untuk

Lihat juga