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.

This constructor is not CLS-compliant.  

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
)
public DbSyncSessionProgressEventArgs (
    DbSyncSession session, 
    DbSyncStage stage, 
    int percentCompleted, 
    DbSyncScopeProgress scopeProgress, 
    int batchNumber, 
    int batchCount, 
    SyncProviderPosition syncProviderPosition, 
    SessionProgressStage sessionProgressStage
)
public function DbSyncSessionProgressEventArgs (
    session : DbSyncSession, 
    stage : DbSyncStage, 
    percentCompleted : int, 
    scopeProgress : DbSyncScopeProgress, 
    batchNumber : int, 
    batchCount : int, 
    syncProviderPosition : SyncProviderPosition, 
    sessionProgressStage : SessionProgressStage
)

Parameters

  • session
    A DbSyncSession object that contains metadata about the current synchronization session.
  • stage
    A DbSyncStage enumeration value that represents the current stage of synchronization.
  • percentCompleted
    The percentage of changes that have been completed for the current synchronization session.
  • scopeProgress
    A DbSyncScopeProgress object that contains a set of progress statistics for a synchronization scope.
  • batchNumber
    The number of the batch that is currently being processed.
  • batchCount
    The total number of batches to be processed in this synchronization session.
  • syncProviderPosition
    A SyncProviderPosition enumeration value that represents whether a provider is associated with the local or remote database.
  • sessionProgressStage
    A SessionProgressStage enumeration value that represents the current stage of synchronization.

See Also

Reference

DbSyncSessionProgressEventArgs Class
DbSyncSessionProgressEventArgs Members
Microsoft.Synchronization.Data Namespace