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