ApplyingChangesEventArgs Constructor
Initializes a new instance of the ApplyingChangesEventArgs class by using group metadata, data set, session, context, connection, and transaction parameters.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
Syntax
'Declaration
Public Sub New ( _
groupMetadata As SyncGroupMetadata, _
dataSet As DataSet, _
syncSession As SyncSession, _
syncContext As SyncContext, _
connection As IDbConnection, _
transaction As IDbTransaction _
)
'Usage
Dim groupMetadata As SyncGroupMetadata
Dim dataSet As DataSet
Dim syncSession As SyncSession
Dim syncContext As SyncContext
Dim connection As IDbConnection
Dim transaction As IDbTransaction
Dim instance As New ApplyingChangesEventArgs(groupMetadata, _
dataSet, syncSession, syncContext, _
connection, transaction)
public ApplyingChangesEventArgs(
SyncGroupMetadata groupMetadata,
DataSet dataSet,
SyncSession syncSession,
SyncContext syncContext,
IDbConnection connection,
IDbTransaction transaction
)
public:
ApplyingChangesEventArgs(
SyncGroupMetadata^ groupMetadata,
DataSet^ dataSet,
SyncSession^ syncSession,
SyncContext^ syncContext,
IDbConnection^ connection,
IDbTransaction^ transaction
)
new :
groupMetadata:SyncGroupMetadata *
dataSet:DataSet *
syncSession:SyncSession *
syncContext:SyncContext *
connection:IDbConnection *
transaction:IDbTransaction -> ApplyingChangesEventArgs
public function ApplyingChangesEventArgs(
groupMetadata : SyncGroupMetadata,
dataSet : DataSet,
syncSession : SyncSession,
syncContext : SyncContext,
connection : IDbConnection,
transaction : IDbTransaction
)
Parameters
- groupMetadata
Type: Microsoft.Synchronization.Data.SyncGroupMetadata
A SyncGroupMetadata object that contains metadata about the synchronization group.
- dataSet
Type: System.Data.DataSet
A DataSet object that contains the rows of data to be applied to the client or server database.
- syncSession
Type: Microsoft.Synchronization.Data.SyncSession
A SyncSession object that contains metadata about the current synchronization session.
- syncContext
Type: Microsoft.Synchronization.Data.SyncContext
A SyncContext object that contains data changes and anchor values and other metadata for a synchronization session.
- connection
Type: System.Data.IDbConnection
An IDbConnection object that contains a connection to the client or server database.
- transaction
Type: System.Data.IDbTransaction
An IDbTransaction object that contains the transaction within which changes to tables are applied.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | groupMetadata, dataSet, syncSession, or syncContext is a null reference (Nothing in Visual Basic). |