Share via


DbSyncSessionProgressEventArgs Constructor

Initializes a new instance of the DbSyncSessionProgressEventArgs class by using synchronization session, synchronization stage, percent completed, scope progress, batch number, batch count, provider position, and progress stage parameters.

Namespace:  Microsoft.Synchronization.Data
Assembly:  Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)

Syntax

'Declaration
Public Sub New ( _
    session As DbSyncSession, _
    stage As DbSyncStage, _
    percentCompleted As Integer, _
    scopeProgress As DbSyncScopeProgress, _
    batchNumber As Integer, _
    batchCount As Integer, _
    syncProviderPosition As SyncProviderPosition, _
    sessionProgressStage As SessionProgressStage _
)
'Usage
Dim session As DbSyncSession
Dim stage As DbSyncStage
Dim percentCompleted As Integer
Dim scopeProgress As DbSyncScopeProgress
Dim batchNumber As Integer
Dim batchCount As Integer
Dim syncProviderPosition As SyncProviderPosition
Dim sessionProgressStage As SessionProgressStage

Dim instance As New DbSyncSessionProgressEventArgs(session, _
    stage, percentCompleted, scopeProgress, _
    batchNumber, batchCount, syncProviderPosition, _
    sessionProgressStage)
public DbSyncSessionProgressEventArgs(
    DbSyncSession session,
    DbSyncStage stage,
    int percentCompleted,
    DbSyncScopeProgress scopeProgress,
    int batchNumber,
    int batchCount,
    SyncProviderPosition syncProviderPosition,
    SessionProgressStage sessionProgressStage
)
public:
DbSyncSessionProgressEventArgs(
    DbSyncSession^ session, 
    DbSyncStage stage, 
    int percentCompleted, 
    DbSyncScopeProgress^ scopeProgress, 
    int batchNumber, 
    int batchCount, 
    SyncProviderPosition syncProviderPosition, 
    SessionProgressStage sessionProgressStage
)
new : 
        session:DbSyncSession * 
        stage:DbSyncStage * 
        percentCompleted:int * 
        scopeProgress:DbSyncScopeProgress * 
        batchNumber:int * 
        batchCount:int * 
        syncProviderPosition:SyncProviderPosition * 
        sessionProgressStage:SessionProgressStage -> DbSyncSessionProgressEventArgs
public function DbSyncSessionProgressEventArgs(
    session : DbSyncSession, 
    stage : DbSyncStage, 
    percentCompleted : int, 
    scopeProgress : DbSyncScopeProgress, 
    batchNumber : int, 
    batchCount : int, 
    syncProviderPosition : SyncProviderPosition, 
    sessionProgressStage : SessionProgressStage
)

Parameters

  • percentCompleted
    Type: System.Int32
    The percentage of changes that have been completed for the current synchronization session.
  • batchNumber
    Type: System.Int32
    The number of the batch that is currently being processed.
  • batchCount
    Type: System.Int32
    The total number of batches to be processed in this synchronization session.

See Also

Reference

DbSyncSessionProgressEventArgs Class

Microsoft.Synchronization.Data Namespace