DefaultEvents.OnProgress 메서드

정의

이 메서드는 측정이 가능할 만큼 태스크가 진행될 때 호출됩니다.

public:
 virtual void OnProgress(Microsoft::SqlServer::Dts::Runtime::TaskHost ^ taskHost, System::String ^ progressDescription, int percentComplete, int progressCountLow, int progressCountHigh, System::String ^ subComponent, bool % fireAgain);
public virtual void OnProgress (Microsoft.SqlServer.Dts.Runtime.TaskHost taskHost, string progressDescription, int percentComplete, int progressCountLow, int progressCountHigh, string subComponent, ref bool fireAgain);
abstract member OnProgress : Microsoft.SqlServer.Dts.Runtime.TaskHost * string * int * int * int * string * bool -> unit
override this.OnProgress : Microsoft.SqlServer.Dts.Runtime.TaskHost * string * int * int * int * string * bool -> unit
Public Overridable Sub OnProgress (taskHost As TaskHost, progressDescription As String, percentComplete As Integer, progressCountLow As Integer, progressCountHigh As Integer, subComponent As String, ByRef fireAgain As Boolean)

매개 변수

taskHost
TaskHost

null 값입니다.

progressDescription
String

발생한 이벤트의 진행률에 대해 설명하는 문자열입니다.

percentComplete
Int32

태스크가 얼마나 완료되었는지 표시하는 데 사용되는 정수입니다.

progressCountLow
Int32

완료된 단위의 하위 32비트를 포함하는 정수입니다.

progressCountHigh
Int32

완료된 단위의 상위 32비트를 포함하는 정수입니다.

subComponent
String

이벤트 원본에 대한 자세한 정보를 포함하는 문자열입니다.

fireAgain
Boolean

계속 발생해야 하는지 아니면 발사를 중지해야 하는지를 나타내는 부울입니다. true 값은 계속 발생해야 임을 나타냅니다.

구현

설명

각 작업에는 고유한 요구 사항이 있지만 일반적으로 태스크는 진행률을 1% 단위로 보고합니다. OnProgress 는 특정 작업의 진행률에 따라 수신 대기 클라이언트를 업데이트하기 위해 미리 결정된 간격으로 태스크에 의해 호출됩니다.

적용 대상