PrintQueueStream.Read(Byte[], Int32, Int32) 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从流中读取字节序列,并按所读取的字节数向前移动在流中的读/写位置。
public:
 override int Read(cli::array <System::Byte> ^ buffer, int offset, int count);
	[System.Security.SecurityCritical]
public override int Read(byte[] buffer, int offset, int count);
	public override int Read(byte[] buffer, int offset, int count);
	[<System.Security.SecurityCritical>]
override this.Read : byte[] * int * int -> int
	override this.Read : byte[] * int * int -> int
	Public Overrides Function Read (buffer As Byte(), offset As Integer, count As Integer) As Integer
	参数
- buffer
 - Byte[]
 
字节数组。
- offset
 - Int32
 
缓冲区(想在此开始存储从流中读取的数据)中从零开始的字节偏移量。
- count
 - Int32
 
要从流中读取的最大字节数。
返回
一个 Int32,拥有读入缓冲区的字节总数。
- 属性
 
注解
如果当前没有可用的字节数,则返回值可以小于请求的字节数;如果读/写位置位于流的末尾,则数字可以为零 (0) 。
此方法返回时, buffer 包含指定的字节数组,并且 offset 介于 和 (offset + count - 1) 替换为从源读取的字节。