IStream.WriteAsync()

DESCRIPTION

Write bytes to a stream.

DECLARATION

System.Threading.Tasks.Task WriteAsync(Byte[])

PARAMETERS

  • data: The data to write to the stream.

ERRORS

  • T:Nabto.Edge.Client.NabtoException: Thrown with error code CLOSED if the stream is closed for writing.
  • T:Nabto.Edge.Client.NabtoException: Thrown with error code STOPPED if the stream was stopped.
  • T:Nabto.Edge.Client.NabtoException: Thrown with error code OPERATION_IN_PROGRESS if another write is in progress.
  • T:Nabto.Edge.Client.NabtoException: Thrown with error code EOF if eof is reached.

RETURNS

The Task that will complete once the operation is done.