SqlFileStream.Write(Byte[], Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将字节序列写入当前流,并通过写入的字节数推进此流中的当前位置。
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 属性确定当前实例是否支持写入。