語言

HostedFileDownloadStream.Write 方法

定義

多載

名稱 Description
Write(ReadOnlySpan<Byte>)

在衍生類別中覆寫時,將位元組序列寫入目前數據流,並依寫入的位元組數目將這個數據流中的目前位置往前移。

Write(Byte[], Int32, Int32)

在衍生類別中覆寫時,將位元組序列寫入目前數據流,並依寫入的位元組數目將這個數據流中的目前位置往前移。

Write(ReadOnlySpan<Byte>)

來源:
HostedFileDownloadStream.cs

在衍生類別中覆寫時,將位元組序列寫入目前數據流,並依寫入的位元組數目將這個數據流中的目前位置往前移。

public:
 override void Write(ReadOnlySpan<System::Byte> buffer);
public override void Write(ReadOnlySpan<byte> buffer);
override this.Write : ReadOnlySpan<byte> -> unit
Public Overrides Sub Write (buffer As ReadOnlySpan(Of Byte))

參數

buffer
ReadOnlySpan<Byte>

一個記憶區域。 此方法會將該區域的內容複製到目前的串流中。

適用於

Write(Byte[], Int32, Int32)

來源:
HostedFileDownloadStream.cs

在衍生類別中覆寫時,將位元組序列寫入目前數據流,並依寫入的位元組數目將這個數據流中的目前位置往前移。

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

目前串流要寫入的位元組數。

適用於