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
Post a Comment