语言

IDTSEvents.OnProgress 方法

定义

要更新任务执行的进度时调用。

public:
 void OnProgress(Microsoft::SqlServer::Dts::Runtime::TaskHost ^ taskHost, System::String ^ progressDescription, int percentComplete, int progressCountLow, int progressCountHigh, System::String ^ subComponent, bool % fireAgain);
public 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
Public 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

一个布尔值表示该信号应继续或停止发射。 值为真则表示应继续发射。

注解

只要任务有明显进展,我都会打电话。 每个任务都有其独特的需求,但一般来说,任务的进展以1%的增量报告。 OnProgress 任务在预定间隔调用,以更新监听客户端关于特定任务进展的情况。

适用于