C# – WebClient upload file issue

cnetvisual-studio-2008webclient

I am using VSTS 2008 + C# + .Net 3.5 to develop a console application to upload a file to server. For the WebClient.UploadProgressChanged Event, I am wondering what is the rule when this event will be raised? I read the below document but find no accurate information (like will be raised 10 times during upload or something). Does anyone know what is the rule when this event will be raised?

http://msdn.microsoft.com/en-us/library/system.net.webclient.uploadprogresschanged.aspx

Best Answer

No, I don't think there is any specific rule. How many times event is called is mostly dependent on how large is the file you are uploading and how fast is your connection.