Udostępnij przez


Metoda DefaultEvents.OnProgress

Metoda ta jest wywoływana anytime zadania doświadczeń wymierny postęp.

Przestrzeń nazw:  Microsoft.SqlServer.Dts.Runtime
Zestaw:  Microsoft.SqlServer.ManagedDTS (w Microsoft.SqlServer.ManagedDTS.dll)

Składnia

'Deklaracja
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 _
)
'Użycie
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
)

Parametry

  • progressDescription
    Typ: System.String
    Ciąg opisujący postęp wywoływane jest zdarzenie.
  • percentComplete
    Typ: System.Int32
    Liczba całkowita użyta do wskazania, jaka część zadania została ukończona.
  • progressCountLow
    Typ: System.Int32
    Liczba całkowita, która zawiera młodsze 32 bity jednostek ukończone.
  • progressCountHigh
    Typ: System.Int32
    Liczba całkowita, która zawiera starsze 32 bity jednostek ukończone.
  • subComponent
    Typ: System.String
    Ciąg, który zawiera więcej szczegółów o źródło zdarzenia.
  • fireAgain
    Typ: System.Boolean%
    A wartość logiczna wskazuje, czy to należy kontynuować wypalania lub zatrzymać wypalania.Wartość true wskazuje, że należy kontynuować wypalania.

Implementacje

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

Uwagi

Każde zadanie ma swoje własne wymagania, ale jako zasadę ogólną zadania Raporty postępu w przyrostach 1 procent.OnProgressjest wywoływany przez zadanie odstępach wstępnie zaktualizować nasłuchuje klientów postępu danego zadania.