WindowHelperService.RegisterWindowMessageHandler(WindowMessage) 方法

定义

为事件通知注册指定的委托。

public:
 bool RegisterWindowMessageHandler(System::Activities::Presentation::Hosting::WindowMessage ^ callback);
public bool RegisterWindowMessageHandler (System.Activities.Presentation.Hosting.WindowMessage callback);
member this.RegisterWindowMessageHandler : System.Activities.Presentation.Hosting.WindowMessage -> bool
Public Function RegisterWindowMessageHandler (callback As WindowMessage) As Boolean

参数

callback
WindowMessage

要为事件通知注册的委托。

返回

如果操作成功,则为 true;否则为 false

例外

callbacknull

适用于