BeginRead
Begins an Asynchronous read operation (currently is only synchronous)
Public Function BeginRead(
ByRef Buffer ( ) As Byte,
ByVal Offset As Long,
ByVal Count As Long,
Optional ByVal Callback As AsyncCallback,
Optional ByRef State As Variant ) As IAsyncResult
Parameters
- Buffer
-
[ByRef]
Byte.
The array to store the bytes that are read from the stream.
- Offset
-
[ByVal]
Long.
The index in Buffer to begin storing bytes.
- Count
-
[ByVal]
Long.
The number of bytes to be read from the stream.
- Callback
-
[ByVal]
Optional.
AsyncCallback.
An object that is called when the read operation is complete.
- State
-
[ByRef]
Optional.
Variant.
user-defined data to be kept with the Callback object for later retrieval.
Return Values
IAsyncResult - An IAsyncResult object used to identify the corrisponding Endread and report
information about the buffer read.
See Also
Project CorLib Overview
Class FileStream Overview