ThrowingWasUpgradedWriteOnlyStream.WriteAsync 方法

定义

将字节的序列异步写入当前流,将该流中的当前位置向前移动写入的字节数,并监视取消请求。

public:
 override System::Threading::Tasks::Task ^ WriteAsync(cli::array <System::Byte> ^ buffer, int offset, int count, System::Threading::CancellationToken cancellationToken);
public override System.Threading.Tasks.Task WriteAsync (byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken);
override this.WriteAsync : byte[] * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function WriteAsync (buffer As Byte(), offset As Integer, count As Integer, cancellationToken As CancellationToken) As Task

参数

buffer
Byte[]
offset
Int32
count
Int32
cancellationToken
CancellationToken

返回

适用于