Share via


LeavingBackgroundEventArgs クラス

定義

アプリがバックグラウンドで実行を停止しようとしているときにデータを提供します。

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
継承
Object Platform::Object IInspectable LeavingBackgroundEventArgs
属性
実装

Windows の要件

デバイス ファミリ
Windows 10 Anniversary Edition (10.0.14393.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v3.0 で導入)

注釈

このオブジェクトは、 WebUIApplication.LeavingBackgroundEventHandler を実装して WebUIApplication.leavingbackground イベントに応答するときにアクセスされます。

メソッド

GetDeferral()

アプリがバックグラウンドで実行を停止するまでの遅延を要求します。

適用対象

こちらもご覧ください