c# - WebRequest.GetResponse().....What happened to it? -


OK I'm playing with Silverlight and participated in some interesting things, I hope someone interprets it can do. The MSDN document clearly states that there is a WebRequest.GetResponse () method in it. I've created some code to get the latest message from Twitter. This code works fine in the console app, but when this is an error in a Silverlight app, this code is exactly the same, but in my xaml.cs file, the method framework Has disappeared from. Anyone know why?

Console app:

Silverlight:

Silverlight documentation Because the GetResponse () method is not listed, you can only call the BeginGetResponse method in Silverlight.

That's because you can block UI threads and browsers that can block. BeginGetResponse is an asynchronous method.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -