System.Net.WebClient.OpenReadAsync C# (CSharp) Method

OpenReadAsync() public method

public OpenReadAsync ( System address ) : void
address System
return void
        public void OpenReadAsync(System.Uri address) { }
        public void OpenReadAsync(System.Uri address, object userToken) { }

Same methods

WebClient::OpenReadAsync ( System address, object userToken ) : void

Usage Example

Esempio n. 1
0
        private void getpage(string inputurl)
        {
            var webClient = new WebClient();

            IsolatedStorageSettings appSettings = IsolatedStorageSettings.ApplicationSettings;

            if (appSettings.Contains("BService") && !((bool)appSettings["BService"]))
            {
                webClient.OpenReadAsync(new Uri("http://v.gd/create.php?format=simple&callback=myfunction&url=" + inputurl + "&logstats=1" + DateTime.Now));
            }
            else webClient.OpenReadAsync(new Uri("http://is.gd/create.php?format=simple&callback=myfunction&url=" + inputurl + "&logstats=1" + DateTime.Now));
                
            webClient.OpenReadCompleted += new OpenReadCompletedEventHandler(webClient_OpenReadComplete);
        }
All Usage Examples Of System.Net.WebClient::OpenReadAsync