WebClient.UploadValuesCompleted 事件

定义

当名称/值集合的异步上传完成时发生。

public:
 event System::Net::UploadValuesCompletedEventHandler ^ UploadValuesCompleted;
public event System.Net.UploadValuesCompletedEventHandler? UploadValuesCompleted;
public event System.Net.UploadValuesCompletedEventHandler UploadValuesCompleted;
member this.UploadValuesCompleted : System.Net.UploadValuesCompletedEventHandler 
Public Custom Event UploadValuesCompleted As UploadValuesCompletedEventHandler 
Public Event UploadValuesCompleted As UploadValuesCompletedEventHandler 

事件类型

注解

谨慎

WebRequestHttpWebRequestServicePointWebClient 已过时,不应将其用于新开发。 请改用 HttpClient

每次异步上传 NameValueCollection 对象的数据完成时都会引发此事件。 这些上传是通过调用 UploadValuesAsync 方法启动的。

UploadValuesCompletedEventHandler 是此事件的委托。 UploadValuesCompletedEventArgs 类为事件处理程序提供事件数据。

有关如何处理事件的详细信息,请参阅 处理和引发事件

适用于