BackgroundActivatedEventHandler 代理人
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供背景工作啟動應用程式時的資訊。
public delegate void BackgroundActivatedEventHandler(Platform::Object ^ sender, IBackgroundActivatedEventArgs ^ eventArgs);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.Guid(3987840955, 1889, 18380, 154, 119, 36, 215, 7, 41, 101, 202)]
class BackgroundActivatedEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.Guid(3987840955, 1889, 18380, 154, 119, 36, 215, 7, 41, 101, 202)]
public delegate void BackgroundActivatedEventHandler(object sender, IBackgroundActivatedEventArgs eventArgs);
var backgroundActivatedEventHandlerHandler = function(sender, eventArgs){
/* Your code */
}
Public Delegate Sub BackgroundActivatedEventHandler(sender As Object, eventArgs As IBackgroundActivatedEventArgs)
參數
- sender
-
Object
Platform::Object
IInspectable
觸發事件的物件。
- eventArgs
- IBackgroundActivatedEventArgs
事件相關資訊。
- 屬性
Windows 需求
裝置系列 |
Windows 10, version 1809 (已於 10.0.17763.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v7.0 引進)
|