当前位置: 代码迷 >> Web Service >> vb写的一个webservice程序,求转成C#的,该怎么处理
  详细解决方案

vb写的一个webservice程序,求转成C#的,该怎么处理

热度:161   发布时间:2016-05-02 02:23:12.0
vb写的一个webservice程序,求转成C#的
end sub
#region "异步调用"
private sub btnStart_Click()
dim cb as asyncallback=new asyncallback(address(me.callback1))
ar=a.begindelcurtable("zdf",cb,a)
end sub

private sub btnEnd_Click()
if ar is nothing then
exit sub
end if
if  ar.IsCompleted Then
dim m as boolean=a.enddelcurtable(ar)
messagebox.show(m.tostring)
end if
end sub
#end region

------解决方案--------------------
引用:
end sub
#region "异步调用"
private sub btnStart_Click()
dim cb as asyncallback=new asyncallback(address(me.callback1))
ar=a.begindelcurtable("zdf",cb,a)
end sub

private sub btnEnd_Click()
if ar is nothing then
exit sub
end if
if  ar.IsCompleted Then
dim m as boolean=a.enddelcurtable(ar)
messagebox.show(m.tostring)
end if
end sub
#end region

这不是VB写的,而是一个二把刀的码农手写的。
------解决方案--------------------
这有个网站可以自动转的
  相关解决方案