Silverlight 4:Application_Exit

时间:2010-06-25 02:03:35

标签: web-services silverlight-4.0 exit

如何在Application_Exit事件中调用Web服务?

 private void Application_Exit(object sender, EventArgs e)
    {
        TestWSSoapClient.ReleaseUserCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(TestWSSoapClient_ReleaseUserCompleted);
        TestWSSoapClient.ReleaseUserAsync(UserToken);}

不再执行以下方法。

void TestWSSoapClient_ReleaseUserCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
    {

    }

提前谢谢。

1 个答案:

答案 0 :(得分:2)

我终于按照example

解决了我的问题