BytesRead
Returns the number of bytes that have been read so far, as a Long. Read-only.
Syntax: object.BytesRead
- object
- required An object expression that evaluates to an AsyncProperty object.
The value accumulates across successive AsyncReadProgress notifications and reaches its final total by the time AsyncReadComplete fires. When BytesMax is non-zero, the ratio BytesRead / BytesMax gives the fraction of the read that has completed.
Example
This example logs the current download progress using BytesRead and BytesMax.
vb
Private Sub UserControl_AsyncReadProgress(AsyncProp As AsyncProperty)
If AsyncProp.PropertyName = "Picture" Then
Debug.Print AsyncProp.BytesRead & " / " & AsyncProp.BytesMax
End If
End SubSee Also
- BytesMax property
- Status property
- StatusCode property