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

CancelAsync() public method

public CancelAsync ( ) : void
return void
        public void CancelAsync() { }
        public byte[] DownloadData(string address) { throw null; }

Usage Example

Example #1
0
    private static void EditorUpdate()
    {
        if (!DLError)
        {
            if (FinishedDL)
            {
                DownloadFinished();
            }
            else if (EditorUtility.DisplayCancelableProgressBar("Downloading latest Fuse SDK", "Downloaded: " + KBytes + "kB / " + TotalKBytes + "kB", DownloadProgress))
            {
                Downloader.CancelAsync();
            }
            else
            {
                return;
            }
        }

        EditorApplication.update -= EditorUpdate;
        EditorUtility.ClearProgressBar();
        if (Downloader != null)
        {
            Downloader.Dispose();
            Downloader = null;
        }
    }
All Usage Examples Of System.Net.WebClient::CancelAsync