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 類別會提供事件處理程式與事件數據。
如需如何處理事件的詳細資訊,請參閱 處理和引發事件。