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
- session
Type: Microsoft.Synchronization.Data.DbSyncSession
A DbSyncSession object that contains metadata about the current synchronization session.
- stage
Type: Microsoft.Synchronization.Data.DbSyncStage
A DbSyncStage enumeration value that represents the current stage of synchronization.
- percentCompleted
Type: System.Int32
The percentage of changes that have been completed for the current synchronization session.
- scopeProgress
Type: Microsoft.Synchronization.Data.DbSyncScopeProgress
A DbSyncScopeProgress object that contains a set of progress statistics for a synchronization scope.
- 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.
- syncProviderPosition
Type: Microsoft.Synchronization.SyncProviderPosition
A SyncProviderPosition enumeration value that represents whether a provider is associated with the local or remote database.
- sessionProgressStage
Type: Microsoft.Synchronization.SessionProgressStage
A SessionProgressStage enumeration value that represents the current stage of synchronization.