Share via


COMCharStream.Read(Byte[], Int32, Int32) 方法

定义

在所有情况下都会引发 NotSupportedException 异常。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 override int Read(cli::array <System::Byte> ^ buffer, int offset, int count);
public override int Read (byte[] buffer, int offset, int count);
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

buffer 中的从零开始的字节偏移量,从此处开始存储从流中读取的数据。

count
Int32

要从流中读取的最大字节数。

返回

在所有情况下都会引发 NotSupportedException 异常。

适用于

另请参阅