FileStream::BeginRead Method
Silverlight
Begins an asynchronous read.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Parameters
- array
- Type: array<System::Byte>
The buffer to read data into.
- offset
- Type: System::Int32
The byte offset in array at which to begin reading.
- numBytes
- Type: System::Int32
The maximum number of bytes to read.
- userCallback
- Type: System::AsyncCallback
The method to be called when the asynchronous read operation is completed.
- stateObject
- Type: System::Object
A user-provided object that distinguishes this particular asynchronous read request from other requests.
| Exception | Condition |
|---|---|
| ArgumentException | The array length minus offset is less than numBytes. |
| ArgumentNullException | array is nullptr. |
| ArgumentOutOfRangeException | offset or numBytes is negative. |
| IOException | An asynchronous read was attempted past the end of the file. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show: