Sdílet prostřednictvím


DbSelectingChangesEventArgs Constructor (DbSyncScopeMetadata, DbSyncSession, DbSyncContext, IDbConnection, IDbTransaction, Generic ReadOnlyCollection)

Initializes a new instance of the DbSelectingChangesEventArgs class by using scope metadata, session, context, connection, transaction, and table name parameters.

Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in microsoft.synchronization.data.dll)

Syntax

'Declaration
Public Sub New ( _
    scopeMetadata As DbSyncScopeMetadata, _
    session As DbSyncSession, _
    context As DbSyncContext, _
    connection As IDbConnection, _
    transaction As IDbTransaction, _
    tables As ReadOnlyCollection(Of String) _
)
'Usage
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>
)

Parameters

  • scopeMetadata
    A DbSyncScopeMetaData object that contains metadata, such as synchronization knowledge.
  • session
    A DbSyncSession object that contains metadata about the current synchronization session.
  • context
    A DbSyncContext object that contains data changes, anchor values, and other metadata for a synchronization session.
  • connection
    An IDbConnection object that contains a connection to the peer database.
  • transaction
    An IDbTransaction object that contains the transaction within which changes to tables are selected.
  • tables
    A collection of the names of tables from which changes will be selected.

See Also

Reference

DbSelectingChangesEventArgs Class
DbSelectingChangesEventArgs Members
Microsoft.Synchronization.Data Namespace