Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IStream::Read Method (array<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(
	array<unsigned char>^ pv,
	int cb,
	IntPtr pcbRead
)

Parameters

pv
Type: array<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.

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
Show:
© 2017 Microsoft