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
- scopeMetadata
Type: Microsoft.Synchronization.Data.DbSyncScopeMetadata
A DbSyncScopeMetaData object that contains metadata, such as synchronization knowledge.
- changes
Type: System.Data.DataSet
A DataSet object that contains the rows of data to be applied to the peer database.
- session
Type: Microsoft.Synchronization.Data.DbSyncSession
A DbSyncSession object that contains metadata about the current synchronization session.
- context
Type: Microsoft.Synchronization.Data.DbSyncContext
A DbSyncContext object that contains data changes, anchor values, and other metadata for a synchronization session.
- connection
Type: System.Data.IDbConnection
An IDbConnection object that contains a connection to the peer database.
- transaction
Type: System.Data.IDbTransaction
An IDbTransaction object that contains the transaction within which changes to tables are applied.
- 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