共用方式為


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 類別會提供事件處理程式與事件數據。

如需如何處理事件的詳細資訊,請參閱 處理和引發事件

適用於