BackgroundActivatedEventArgs クラス

定義

アプリがバックグラウンド トリガーによってアクティブ化されたときに、 IBackgroundTask.Run メソッドからすべてのデータをイベント ハンドラーで使用できるようにします。

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

Windows の要件

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

注釈

このオブジェクトは、バックグラウンドでアクティブ化されたイベント ハンドラーに渡されます。

プロパティ

TaskInstance

アプリがアクティブ化された IBackgroundTask.Run メソッドで使用できたデータを取得します。

適用対象

こちらもご覧ください