将C#ExtNet DirectMethod实现转换为VB.NET

时间:2011-12-28 20:33:19

标签: c# ajax vb.net ext.net

如何将以下代码转换为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();
    }
}

1 个答案:

答案 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