Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns an asynchronous computation that will write the given bytes to the stream.
Namespace/Module Path: Microsoft.FSharp.Control.CommonExtensions
Assembly: FSharp.Core (in FSharp.Core.dll)
// Signature:
type System.IO.Stream with
member AsyncWrite : byte [] * ?int * ?int -> Async<unit>
// Usage:
stream.AsyncWrite (buffer)
Parameters
-
The buffer to write from.
offset
Type: intAn optional offset as the number of bytes in the stream.
count
Type: intAn optional number of bytes to write to the stream.
Exceptions
Exception |
Description |
---|---|
Thrown when offset or count is longer than the buffer length. |
Platforms
Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2
Version Information
F# Core Library Versions
Supported in: 2.0