Share via


DbApplyingChangesEventArgs Constructor (DbSyncScopeMetadata, DataSet, DbSyncSession, DbSyncContext, IDbConnection, IDbTransaction, Boolean)

Initializes a new instance of the DbApplyingChangesEventArgs class by using scope metadata, DataSet, session, context, connection, transaction, and batch parameters.

Namespace:  Microsoft.Synchronization.Data
Assembly:  Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)

Syntax

'Declaration
Public Sub New ( _
    scopeMetadata As DbSyncScopeMetadata, _
    changes As DataSet, _
    session As DbSyncSession, _
    context As DbSyncContext, _
    connection As IDbConnection, _
    transaction As IDbTransaction, _
    isLastBatch As Boolean _
)
'Usage
Dim scopeMetadata As DbSyncScopeMetadata
Dim changes As DataSet
Dim session As DbSyncSession
Dim context As DbSyncContext
Dim connection As IDbConnection
Dim transaction As IDbTransaction
Dim isLastBatch As Boolean

Dim instance As New DbApplyingChangesEventArgs(scopeMetadata, _
    changes, session, context, connection, _
    transaction, isLastBatch)
public DbApplyingChangesEventArgs(
    DbSyncScopeMetadata scopeMetadata,
    DataSet changes,
    DbSyncSession session,
    DbSyncContext context,
    IDbConnection connection,
    IDbTransaction transaction,
    bool isLastBatch
)
public:
DbApplyingChangesEventArgs(
    DbSyncScopeMetadata^ scopeMetadata, 
    DataSet^ changes, 
    DbSyncSession^ session, 
    DbSyncContext^ context, 
    IDbConnection^ connection, 
    IDbTransaction^ transaction, 
    bool isLastBatch
)
new : 
        scopeMetadata:DbSyncScopeMetadata * 
        changes:DataSet * 
        session:DbSyncSession * 
        context:DbSyncContext * 
        connection:IDbConnection * 
        transaction:IDbTransaction * 
        isLastBatch:bool -> DbApplyingChangesEventArgs
public function DbApplyingChangesEventArgs(
    scopeMetadata : DbSyncScopeMetadata, 
    changes : DataSet, 
    session : DbSyncSession, 
    context : DbSyncContext, 
    connection : IDbConnection, 
    transaction : IDbTransaction, 
    isLastBatch : boolean
)

Parameters

  • isLastBatch
    Type: System.Boolean
    Indicates whether the current batch is the last batch of changes.

Exceptions

Exception Condition
ArgumentNullException

scopeMetaData, changes, session, or context is a null reference (Nothing in Visual Basic).

See Also

Reference

DbApplyingChangesEventArgs Class

DbApplyingChangesEventArgs Overload

Microsoft.Synchronization.Data Namespace