EnteredBackgroundEventArgs クラス

定義

アプリがバックグラウンド状態になったときの遅延オブジェクトを取得します。

public ref class EnteredBackgroundEventArgs sealed : IEnteredBackgroundEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class EnteredBackgroundEventArgs final : IEnteredBackgroundEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class EnteredBackgroundEventArgs : IEnteredBackgroundEventArgs
Public NotInheritable Class EnteredBackgroundEventArgs
Implements IEnteredBackgroundEventArgs
継承
Object Platform::Object IInspectable EnteredBackgroundEventArgs
属性
実装

Windows の要件

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

注釈

このオブジェクトは、アプリに入力されたバックグラウンド イベント ハンドラーに渡されます。

ヒント

アプリがバックグラウンド状態に入る頃には、その UI は表示されません。

メソッド

GetDeferral()

アプリが Deferral.Complete を呼び出すか、ナビゲーションの期限を過ぎるまで、バックグラウンド状態で実行から中断状態への移行を遅延させる遅延オブジェクトを取得します。

適用対象

こちらもご覧ください