当前位置:编程学习 > C#/ASP.NET >>

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
--------------------编程问答--------------------
引用 楼主 u012992434 的回复:
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写的,而是一个二把刀的码农手写的。 --------------------编程问答-------------------- 这有个网站可以自动转的
补充:.NET技术 ,  Web Services
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,