WebClient.UploadValuesCompleted 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当名称/值集合的异步上传完成时发生。
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
事件类型
注解
谨慎
WebRequest
、HttpWebRequest
、ServicePoint
和 WebClient
已过时,不应将其用于新开发。 请改用 HttpClient。
每次异步上传 NameValueCollection 对象的数据完成时都会引发此事件。 这些上传是通过调用 UploadValuesAsync 方法启动的。
UploadValuesCompletedEventHandler 是此事件的委托。 UploadValuesCompletedEventArgs 类为事件处理程序提供事件数据。
有关如何处理事件的详细信息,请参阅 处理和引发事件。