DbSelectingChangesEventArgs 构造函数 (DbSyncScopeMetadata, DbSyncSession, DbSyncContext, IDbConnection, IDbTransaction, 泛型 ReadOnlyCollection)

使用作用域元数据、会话、上下文、连接、事务和表名参数初始化 DbSelectingChangesEventArgs 类的一个新实例。

命名空间: Microsoft.Synchronization.Data
程序集: Microsoft.Synchronization.Data(在 microsoft.synchronization.data.dll 中)

语法

声明
Public Sub New ( _
    scopeMetadata As DbSyncScopeMetadata, _
    session As DbSyncSession, _
    context As DbSyncContext, _
    connection As IDbConnection, _
    transaction As IDbTransaction, _
    tables As ReadOnlyCollection(Of String) _
)
用法
Dim scopeMetadata As DbSyncScopeMetadata
Dim session As DbSyncSession
Dim context As DbSyncContext
Dim connection As IDbConnection
Dim transaction As IDbTransaction
Dim tables As ReadOnlyCollection(Of String)

Dim instance As New DbSelectingChangesEventArgs(scopeMetadata, session, context, connection, transaction, tables)
public DbSelectingChangesEventArgs (
    DbSyncScopeMetadata scopeMetadata,
    DbSyncSession session,
    DbSyncContext context,
    IDbConnection connection,
    IDbTransaction transaction,
    ReadOnlyCollection<string> tables
)
public:
DbSelectingChangesEventArgs (
    DbSyncScopeMetadata^ scopeMetadata, 
    DbSyncSession^ session, 
    DbSyncContext^ context, 
    IDbConnection^ connection, 
    IDbTransaction^ transaction, 
    ReadOnlyCollection<String^>^ tables
)
public DbSelectingChangesEventArgs (
    DbSyncScopeMetadata scopeMetadata, 
    DbSyncSession session, 
    DbSyncContext context, 
    IDbConnection connection, 
    IDbTransaction transaction, 
    ReadOnlyCollection<String> tables
)
public function DbSelectingChangesEventArgs (
    scopeMetadata : DbSyncScopeMetadata, 
    session : DbSyncSession, 
    context : DbSyncContext, 
    connection : IDbConnection, 
    transaction : IDbTransaction, 
    tables : ReadOnlyCollection<String>
)

参数

  • session
    包含有关当前同步会话的元数据的 DbSyncSession 对象。
  • context
    包含同步会话的数据变更、定位点值和其他元数据的 DbSyncContext 对象。
  • connection
    包含到对等数据库的连接的 IDbConnection 对象。
  • transaction
    包含特定事务(在此事务中选择对表的变更)的 IDbTransaction 对象。
  • tables
    将从其选择变更的表名的集合。

请参阅

参考

DbSelectingChangesEventArgs 类
DbSelectingChangesEventArgs 成员
Microsoft.Synchronization.Data 命名空间