WebClient.OpenWriteCompleted イベント
アセンブリ: System (system.dll 内)

Dim instance As WebClient Dim handler As OpenWriteCompletedEventHandler AddHandler instance.OpenWriteCompleted, handler
public: event OpenWriteCompletedEventHandler^ OpenWriteCompleted { void add (OpenWriteCompletedEventHandler^ value); void remove (OpenWriteCompletedEventHandler^ value); }

このイベントは、リソースにデータを送信するために使用するストリームを開く非同期操作が完了するたびに発生します。これらの操作は、OpenWriteAsync メソッドを呼び出すことによって開始されます。
OpenWriteCompletedEventHandler は、このイベントのデリゲートです。OpenWriteCompletedEventArgs クラスは、イベント ハンドラにイベント データを提供します。

このイベントのイベント ハンドラを設定するコード例を次に示します。
Public Shared Sub OpenResourceForWriting2(ByVal address As String) Dim client As WebClient = New WebClient() ' Specify that the OpenWriteCallback method gets called ' when the writeable stream is available. AddHandler client.OpenWriteCompleted, AddressOf OpenWriteCallback2 Dim uri as Uri = New Uri(address) client.OpenWriteAsync(uri, "POST") ' Applications can perform other tasks ' while waiting for the upload to complete. End Sub
public static void OpenResourceForWriting2 (string address) { WebClient client = new WebClient (); Uri uri = new Uri(address); // Specify that the OpenWriteCallback method gets called // when the writeable stream is available. client.OpenWriteCompleted += new OpenWriteCompletedEventHandler (OpenWriteCallback2); client.OpenWriteAsync (uri, "POST"); // Applications can perform other tasks // while waiting for the upload to complete. }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からWebClient.OpenWriteCompleted イベントを検索する場合は、下記のリンクをクリックしてください。

- WebClient.OpenWriteCompleted イベントのページへのリンク