Export (0) Print
Expand All

PrintQueueStream.Read Method

Reads a sequence of bytes from the stream and advances the read/write position in the stream by the number of bytes that were read.

Namespace:  System.Printing
Assembly:  System.Printing (in System.Printing.dll)

public override int Read(
	byte[] buffer,
	int offset,
	int count
)

Parameters

buffer
Type: System.Byte[]

An array of bytes.

offset
Type: System.Int32

The zero-based byte offset in the buffer where you want to begin storing the data that is read from the stream.

count
Type: System.Int32

The maximum number of bytes to be read from the stream.

Return Value

Type: System.Int32
An Int32 that holds the total number of bytes that are read into the buffer.

The return value can be less than the number of requested bytes if that many bytes are not currently available; or the number can be zero (0) if the read/write position is at the end of the stream.

When this method returns, buffer contains the specified byte array and the values between offset and (offset + count - 1) are replaced by the bytes that are read from the source.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft