共用方式為


ActivatedEventHandler 代理人

定義

表示處理應用程式啟用事件的方法。

public delegate void ActivatedEventHandler(Platform::Object ^ sender, IActivatedEventArgs ^ eventArgs);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1358030640, 50641, 19307, 154, 219, 138, 17, 117, 107, 226, 156)]
class ActivatedEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1358030640, 50641, 19307, 154, 219, 138, 17, 117, 107, 226, 156)]
public delegate void ActivatedEventHandler(object sender, IActivatedEventArgs eventArgs);
var activatedEventHandlerHandler = function(sender, eventArgs){
/* Your code */
}
Public Delegate Sub ActivatedEventHandler(sender As Object, eventArgs As IActivatedEventArgs)

參數

sender
Object

Platform::Object

IInspectable

寄件者。

eventArgs
IActivatedEventArgs

事件資訊。 資料類型取決於應用程式啟動的原因。 如需可能資料類型的清單,請參閱 ActivationKind 列舉。

屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

適用於

另請參閱