Read Method
Collapse the table of content
Expand the table of content

IStream.Read Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Reads a specified number of bytes from the stream object into memory starting at the current seek pointer.

Namespace:  System.Runtime.InteropServices.ComTypes
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Sub Read ( _
	pv As Byte(), _
	cb As Integer, _
	pcbRead As IntPtr _
)

Parameters

pv
Type: System.Byte ()
When this method returns, contains the data read from the stream. This parameter is passed uninitialized.
cb
Type: System.Int32
The number of bytes to read from the stream object.
pcbRead
Type: System.IntPtr
A pointer to a ULONG variable that receives the actual number of bytes read from the stream object.

For more information, see the existing documentation for ISequentialStream::Read in the MSDN Library.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft