Vb.net Windows CE异步.Net webservice调用导致回调对象为空

Vb.net Windows CE异步.Net webservice调用导致回调对象为空,vb.net,web-services,oop,windows-ce,Vb.net,Web Services,Oop,Windows Ce,我被卡住了……:) Windows CE(.Net Compact Framework 3.5)代码: Web服务使用OOP对象Result进行应答,该对象包含不同的内容,包括一个数据表 似乎efromend为空。。。 如果我同步调用webservice,一切正常。 我相信它与stateobject有关,但我似乎找不到 任何例子 帮助?因为它是一个异步方法,所以需要调用EndExecute来获得结果,如下所示: Private Sub Ended(ByVal e As System.IAsync

我被卡住了……:)

Windows CE(.Net Compact Framework 3.5)代码:

Web服务使用OOP对象
Result
进行应答,该对象包含不同的内容,包括一个数据表

似乎
e
from
end
为空。。。 如果我同步调用webservice,一切正常。 我相信它与stateobject有关,但我似乎找不到 任何例子


帮助?

因为它是一个异步方法,所以需要调用EndExecute来获得结果,如下所示:

Private Sub Ended(ByVal e As System.IAsyncResult)

    service.EndExecute(e)  ' This will give you the result

End Sub
Private Sub Ended(ByVal e As System.IAsyncResult)

    service.EndExecute(e)  ' This will give you the result

End Sub