Set a wait time for a statement in C# -


this question has answer here:

i using webclient in c#.

  returnvalue = webclient.uploadstring(url, message) 

it works fine if connection , other credentials fine. if mistake in either credentials or connection, waits webclient @ least 5 minutes respond. want set 30 seconds command executed , if dont response abort it. how do so? there way?

is code looking for?

webclient.timeout = 500; returnvalue = webclient.uploadstring(url, message); 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -