Stream.AsyncWrite 扩展方法 (F#)

返回一个将给定字节写入流的异步计算。

命名空间/模块路径: Microsoft.FSharp.Control.CommonExtensions

程序集:FSharp.Core(在 FSharp.Core.dll 中)

// Signature:
type System.IO.Stream with
  member AsyncWrite : byte [] * ?int * ?int -> Async<unit>

// Usage:
stream.AsyncWrite (buffer)

参数

  • buffer
    类型:byte[]

    从中写入的缓冲区。

  • offset
    类型:int

    以流中的字节数表示的可选偏移量。

  • count
    类型:int

    要写入流的可选字节数。

异常

异常

说明

ArgumentException

在 offset 或 count 大于缓冲区长度时引发。

平台

Windows 8,Windows 7,Windows server 2012中,Windows server 2008 R2

版本信息

F#核心库版本

受以下版本支持:2.0

请参见

参考

Control.CommonExtensions 模块 (F#)

Stream