HostedFileDownloadStream.Write 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| Write(ReadOnlySpan<Byte>) |
在派生类中重写时,将字节序列写入当前流,并通过写入的字节数推进此流中的当前位置。 |
| Write(Byte[], Int32, Int32) |
在派生类中重写时,将字节序列写入当前流,并通过写入的字节数推进此流中的当前位置。 |
Write(ReadOnlySpan<Byte>)
- Source:
- 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)
- Source:
- 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
要写入当前流的字节数。