转换引发事件时出错

error in convertion raisevent

您好,我尝试使用网络免费工具转换来转换它。我的问题是 raisevent,下面是我从 c# 转换为 vb 的脚本。尝试 运行 它的错误在第一串代码下面...

 GoogleMapForASPNet1.PushpinDrag += New GoogleMapForASPNet.PushpinDragHandler(AddressOf OnPushpinDrag) 

'这是 PushpinDrag 事件的事件处理程序

Private Sub OnPushpinDrag(pID As String)           
    lblPushpin1.Text = 
        "(" + GoogleMapForASPNet1.GoogleMapObject.Points(pID).Latitude.ToString() + "," 
        + GoogleMapForASPNet1.GoogleMapObject.Points(pID).Longitude.ToString() + ")"
End Sub

希望有人能帮助我解决这个问题

将其转换为:

AddHandler GoogleMapForASPNet1.PushpinDrag, AddressOf OnPushpinDrag

Documentation