Aracılığıyla paylaş


DefaultEvents.OnProgress Yöntemi

Ölçülebilir ilerleme görev deneyimleri herhangi bir zamanda bu yöntem çağrılır.

Ad Alanı:  Microsoft.SqlServer.Dts.Runtime
Derleme:  Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS içinde.dll)

Sözdizimi

'Bildirim
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 _
)
'Kullanım
Dim instance As DefaultEvents
Dim taskHost As TaskHost
Dim progressDescription As String
Dim percentComplete As Integer
Dim progressCountLow As Integer
Dim progressCountHigh As Integer
Dim subComponent As String
Dim fireAgain As Boolean

instance.OnProgress(taskHost, progressDescription, _
    percentComplete, progressCountLow, _
    progressCountHigh, subComponent, _
    fireAgain)
public virtual void OnProgress(
    TaskHost taskHost,
    string progressDescription,
    int percentComplete,
    int progressCountLow,
    int progressCountHigh,
    string subComponent,
    ref bool fireAgain
)
public:
virtual void OnProgress(
    TaskHost^ taskHost, 
    String^ progressDescription, 
    int percentComplete, 
    int progressCountLow, 
    int progressCountHigh, 
    String^ subComponent, 
    bool% fireAgain
)
abstract OnProgress : 
        taskHost:TaskHost * 
        progressDescription:string * 
        percentComplete:int * 
        progressCountLow:int * 
        progressCountHigh:int * 
        subComponent:string * 
        fireAgain:bool byref -> unit 
override OnProgress : 
        taskHost:TaskHost * 
        progressDescription:string * 
        percentComplete:int * 
        progressCountLow:int * 
        progressCountHigh:int * 
        subComponent:string * 
        fireAgain:bool byref -> unit 
public function OnProgress(
    taskHost : TaskHost, 
    progressDescription : String, 
    percentComplete : int, 
    progressCountLow : int, 
    progressCountHigh : int, 
    subComponent : String, 
    fireAgain : boolean
)

Parametreler

  • progressDescription
    Tür: System.String
    İlerleme durumunu ortaya çıkar olay tanımlayan bir dize.
  • percentComplete
    Tür: System.Int32
    Görevin ne kadarının tamamlandığını belirtmek için kullanılan bir tamsayı.
  • progressCountLow
    Tür: System.Int32
    Düşük 32 bitlik tamamlandı birimlerini içeren bir tamsayı.
  • progressCountHigh
    Tür: System.Int32
    Yüksek 32 bitlik tamamlandı birimlerini içeren bir tamsayı.
  • subComponent
    Tür: System.String
    Olay kaynak hakkında daha fazla ayrıntı içeren bir dize.
  • fireAgain
    Tür: System.Boolean%
    A Boole bu Açmadığınızda devam mı Açmadığınızda durdurmak gösterir.Değeri, doğru Açmadığınızda devam etmelidir gösterir.

Uygulamalar

IDTSEvents.OnProgress(TaskHost, String, Int32, Int32, Int32, String, Boolean%)

Açıklamalar

Her görev, kendi gereksinimleri vardır, ancak genel bir kural, bir görevin yüzde 1'lik artışlarla ilerlemeyi raporlar.OnProgressGöreve göre belirli bir görevin ilerlemesini dinleme istemcilerde güncelleştirmek için önceden belirlenmiş aralıklarla denir.