BytesRead
返回目前已读取的字节数,类型为Long。只读。
语法:object.BytesRead
- object
- 必需 求值为AsyncProperty对象的对象表达式。
该值在连续的AsyncReadProgress通知中累积,到AsyncReadComplete触发时达到最终总数。当BytesMax非零时,比率BytesRead / BytesMax给出已完成读取的比例。
示例
此示例使用BytesRead和BytesMax记录当前下载进度。
vb
Private Sub UserControl_AsyncReadProgress(AsyncProp As AsyncProperty)
If AsyncProp.PropertyName = "Picture" Then
Debug.Print AsyncProp.BytesRead & " / " & AsyncProp.BytesMax
End If
End Sub另见
- BytesMax 属性
- Status 属性
- StatusCode 属性