DbSyncSessionProgressEventArgs 构造函数
使用同步会话、同步阶段、完成的百分比、作用域进度、批号、批计数、提供程序位置以及进度阶段参数初始化 DbSyncSessionProgressEventArgs 类的一个新实例。
此构造函数不符合 CLS。
命名空间: Microsoft.Synchronization.Data
程序集: Microsoft.Synchronization.Data(在 microsoft.synchronization.data.dll 中)
语法
声明
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 _
)
用法
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
)
参数
- session
包含有关当前同步会话的元数据的 DbSyncSession 对象。
- stage
表示当前同步阶段的 DbSyncStage 枚举值。
- percentCompleted
当前同步会话已完成的变更的百分比。
- scopeProgress
包含同步作用域的一组进度统计信息的 DbSyncScopeProgress 对象。
- batchNumber
当前正在处理的批的编号。
- batchCount
此同步会话期间要处理的批的总数。
- syncProviderPosition
SyncProviderPosition 枚举值,该枚举值表示提供程序是与本地数据库关联,还是与远程数据库关联。
- sessionProgressStage
表示当前同步阶段的 SessionProgressStage 枚举值。
请参阅
参考
DbSyncSessionProgressEventArgs 类
DbSyncSessionProgressEventArgs 成员
Microsoft.Synchronization.Data 命名空间