有人能帮我把这个转换成VB
本文关键字:转换 VB | 更新日期: 2023-09-27 18:06:42
我尝试了一个在线转换器,但它很糟糕。任何帮助都是感激的。
// Set the event handler for when the application data object changes.
(Application.Current as ExecutionModelApplication.App).ApplicationDataObjectChanged +=
new EventHandler(MainPage_ApplicationDataObjectChanged);
试试这个,
AddHandler CType(Application.Current,ExecutionModelApplication.App).ApplicationDataObjectChanged,
AddressOf NameOfHandlerMethod
事件处理程序:Proctected Sub NameOfHandlerMethod(sender as Object, E as EventArgs)
.
End Sub
可能
AddHandler TryCast(Application.Current, ExecutionModelApplication.App).ApplicationDataObjectChanged, New EventHandler(AddressOf MainPage_ApplicationDataObjectChanged)
AddHandler TryCast(Application.Current,ExecutionModelApplication.App).ApplicationDataObjectChanged,_
AddressOf MainPage_ApplicationDataObjectChanged