請問 VB.NET Client如何 call ServerMethod?
例如:Server端的module為S001.dll,裏面有一個Server Method名稱為TestMethod
同步的情況:
Dim param(2) As Object
param(1) = "param1"
param(2) = "param2"
Dim obj = Srvtools.CliUtils.CallMethod("S001", "TestMethod", param)
異步的情況:
Public Sub CallBack(ByVal obj1() As Object)
MsgBox(obj1(0).ToString + " --" + obj1(1))
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim obj1(2) As Object
obj1(1) = "1"
obj1(2) = "2"
Srvtools.CliUtils.AsyncCallMethod("sTDORDER", "MyCount", obj1, AddressOf CallBack)
End Sub