通过


SqlFileStream.Write(Byte[], Int32, Int32) 方法

定义

将字节序列写入当前流,并通过写入的字节数推进此流中的当前位置。

public:
 override void Write(cli::array <System::Byte> ^ buffer, int offset, int count);
public override void Write(byte[] buffer, int offset, int count);
override this.Write : byte[] * int * int -> unit
Public Overrides Sub Write (buffer As Byte(), offset As Integer, count As Integer)

参数

buffer
Byte[]

字节数组。 此方法将 count 字节从 buffer 当前流复制到。

offset
Int32

从零开始的字节偏移量 buffer ,开始将字节复制到当前流。

count
Int32

要写入当前流的字节数。

例外

对象不支持写入数据。

注解

使用 CanWrite 属性确定当前实例是否支持写入。

适用于

另请参阅