IStream.Read Method (Byte[], Int32, IntPtr)


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)

void Read(
	byte[] pv,
	int cb,
	IntPtr pcbRead


Type: System.Byte[]

When this method returns, contains the data read from the stream. This parameter is passed uninitialized.

Type: System.Int32

The number of bytes to read from the stream object.

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top