GZipStream.BeginWrite メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > GZipStream.BeginWrite メソッドの意味・解説 

GZipStream.BeginWrite メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

非同期の書き込み操作を開始します。

名前空間: System.IO.Compression
アセンブリ: System (system.dll 内)
構文構文

Public Overrides Function
 BeginWrite ( _
    array As Byte(), _
    offset As Integer, _
    count As Integer, _
    asyncCallback As AsyncCallback, _
    asyncState As Object _
) As IAsyncResult
Dim instance As GZipStream
Dim array As Byte()
Dim offset As Integer
Dim count As Integer
Dim asyncCallback As AsyncCallback
Dim asyncState As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginWrite(array, offset, count, asyncCallback, asyncState)
public override IAsyncResult BeginWrite (
    byte[] array,
    int offset,
    int count,
    AsyncCallback asyncCallback,
    Object asyncState
)
public:
virtual IAsyncResult^ BeginWrite (
    array<unsigned char>^ array, 
    int offset, 
    int count, 
    AsyncCallback^ asyncCallback, 
    Object^ asyncState
) override
public IAsyncResult BeginWrite (
    byte[] array, 
    int offset, 
    int count, 
    AsyncCallback asyncCallback, 
    Object asyncState
)
public override function BeginWrite (
    array : byte[], 
    offset : int, 
    count : int, 
    asyncCallback : AsyncCallback, 
    asyncState : Object
) : IAsyncResult

パラメータ

array

現在のストリームに書き込むデータを格納しているバッファ。

offset

書き込みの開始位置を示す array 内のバイト オフセット。

count

書き込む最大バイト数。

asyncCallback

書き込みの完了時に呼び出されるオプションの非同期コールバック。

asyncState

この特定の非同期書き込み要求を他の要求と区別するために使用するユーザー指定のオブジェクト。

戻り値
非同期の書き込みを表す IAsyncResult オブジェクト。まだ保留状態の場合もあります。

例外例外
例外の種類条件

InvalidOperationException

基になるストリームが null 参照 (Visual Basic では Nothing) です。

または

基になるストリームが閉じられました。

解説解説

BeginWrite メソッドは、GZipStream ストリーム オブジェクトへの非同期の書き込み操作を開始します。

AsyncCallback デリゲートを実装するコールバック メソッドを作成し、その名前を BeginWrite メソッドに渡す必要があります。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
GZipStream クラス
GZipStream メンバ
System.IO.Compression 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

GZipStream.BeginWrite メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



GZipStream.BeginWrite メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS