共用方式為


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 方法可用的資料,導致您的應用程式啟動。

適用於

另請參閱