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[]

位元組陣列。 此方法會從 buffer 複製 count 位元組到目前資料流。

offset
Int32

buffer 中以零起始的位元組位移,即開始將位元組複製到目前資料流的位置。

count
Int32

寫入目前資料流的位元組數目。

例外狀況

此物件不支援寫入資料。

備註

CanWrite使用屬性來判斷目前的實例是否支援寫入。

適用於

另請參閱