Uploader for Silverlight Task-Based Help > Cancelling a File Upload |
You may run into the need to cancel a file upload. You can use the Cancel method to cancel file uploads. For example, you can cancel the upload if it is taking too long or using too many resources.
For example, you might use the following code to cancel an upload:
Visual Basic |
Copy Code
|
---|---|
uploader1.Cancel() |
C# |
Copy Code
|
---|---|
uploader1.Cancel(); |
This cancels the C1Uploader control's current upload process.