使用同步阶段、完成的百分比以及批进度参数初始化 SessionProgressEventArgs 类的一个新实例。
命名空间: Microsoft.Synchronization
程序集: Microsoft.Synchronization.Data(在 microsoft.synchronization.data.dll 中)
语法
声明
Public Sub New ( _
    syncStage As SyncStage, _
    percentCompleted As Integer, _
    batchProgress As SyncBatchProgress _
)
用法
Dim syncStage As SyncStage
Dim percentCompleted As Integer
Dim batchProgress As SyncBatchProgress
Dim instance As New SessionProgressEventArgs(syncStage, percentCompleted, batchProgress)
public SessionProgressEventArgs (
    SyncStage syncStage,
    int percentCompleted,
    SyncBatchProgress batchProgress
)
public:
SessionProgressEventArgs (
    SyncStage syncStage, 
    int percentCompleted, 
    SyncBatchProgress^ batchProgress
)
public SessionProgressEventArgs (
    SyncStage syncStage, 
    int percentCompleted, 
    SyncBatchProgress batchProgress
)
public function SessionProgressEventArgs (
    syncStage : SyncStage, 
    percentCompleted : int, 
    batchProgress : SyncBatchProgress
)
参数
- syncStage
 表示当前同步阶段的 SyncStage 枚举值。
- percentCompleted
 当前同步会话已完成的变更的百分比。
- batchProgress
 一个 SyncBatchProgress 对象,该对象表示正在同步的当前变更批的进度。
请参阅
参考
SessionProgressEventArgs 类
SessionProgressEventArgs 成员
Microsoft.Synchronization 命名空间