如何将以下代码转换为VB.NET?
[DirectMethodProxyID(IDMode = DirectMethodProxyIDMode.Alias, Alias = "UC")]
public partial class AliasID : System.Web.UI.UserControl
{
[DirectMethod]
public void HelloUserControl()
{
X.Msg.Alert("Message", "Hello from UserControl").Show();
}
}
答案 0 :(得分:4)
<DirectMethodProxyID(IDMode := DirectMethodProxyIDMode.[Alias], [Alias] := "UC")> _
Public Partial Class AliasID
Inherits System.Web.UI.UserControl
<DirectMethod> _
Public Sub HelloUserControl()
X.Msg.Alert("Message", "Hello from UserControl").Show()
End Sub
End Class