InPlaceHostingManager.DownloadProgressChanged 이벤트

정의

애플리케이션 또는 매니페스트 다운로드의 상태가 변경될 때 발생합니다.

public:
 event EventHandler<System::Deployment::Application::DownloadProgressChangedEventArgs ^> ^ DownloadProgressChanged;
public event EventHandler<System.Deployment.Application.DownloadProgressChangedEventArgs> DownloadProgressChanged;
member this.DownloadProgressChanged : EventHandler<System.Deployment.Application.DownloadProgressChangedEventArgs> 
Public Custom Event DownloadProgressChanged As EventHandler(Of DownloadProgressChangedEventArgs) 
Public Event DownloadProgressChanged As EventHandler(Of DownloadProgressChangedEventArgs) 

이벤트 유형

EventHandler<DownloadProgressChangedEventArgs>

예제

다음 코드 예제를 업데이트 하는 방법에 설명 된 ToolStripProgressBar 에 포함 된를 StatusStrip입니다.

void iphm_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
    // you can show percentage of task completed using e.ProgressPercentage
}
Private Sub iphm_DownloadProgressChanged(ByVal sender As Object, ByVal e As DownloadProgressChangedEventArgs) Handles iphm.DownloadProgressChanged
    ' you can show percentage of task completed using e.ProgressPercentage
End Sub

설명

콘솔 애플리케이션에서 이벤트를 스레드 풀의 스레드에 할당 됩니다. 따라서 이전 이벤트에 비해 감소를 보여 주는 후속 이벤트와 순서 대로 진행률 업데이트 이벤트를 받을 수 있습니다. Windows Forms의 이벤트는 사용자 인터페이스 (UI) 스레드의 메시지 큐에서 순차적으로 처리 되므로 Windows Forms 기반 애플리케이션에서는 이러한 동작이 표시 되지 않습니다.

적용 대상