SecureBlackbox 2020 .NET Edition

Questions / Feedback?

Progress Event

Fires periodically during the data transfer.

Syntax

public event OnProgressHandler OnProgress;

public delegate void OnProgressHandler(object sender, HttpclientProgressEventArgs e);

public class HttpclientProgressEventArgs : EventArgs {
  public long Total { get; }
  public long Current { get; }
  public bool Cancel { get; set; }
}
Public Event OnProgress As OnProgressHandler

Public Delegate Sub OnProgressHandler(sender As Object, e As HttpclientProgressEventArgs)

Public Class HttpclientProgressEventArgs Inherits EventArgs
  Public ReadOnly Property Total As Long
  Public ReadOnly Property Current As Long
  Public Property Cancel As Boolean
End Class

Remarks

Use this event to check the progress of an upload or download operation. Total indicates the total number of bytes to be transferred; Current specifies how much data has been transferred so far, and Cancel gives you a chance to cancel the operation.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 .NET Edition - Version 20.0 [Build 8165]