ChangesSelectedEventArgs Constructor
Initializes a new instance of the ChangesSelectedEventArgs class by using group metadata, 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, _
syncSession As SyncSession, _
syncContext As SyncContext, _
connection As IDbConnection, _
transaction As IDbTransaction _
)
'Usage
Dim groupMetadata As SyncGroupMetadata
Dim syncSession As SyncSession
Dim syncContext As SyncContext
Dim connection As IDbConnection
Dim transaction As IDbTransaction
Dim instance As New ChangesSelectedEventArgs(groupMetadata, _
syncSession, syncContext, connection, _
transaction)
public ChangesSelectedEventArgs(
SyncGroupMetadata groupMetadata,
SyncSession syncSession,
SyncContext syncContext,
IDbConnection connection,
IDbTransaction transaction
)
public:
ChangesSelectedEventArgs(
SyncGroupMetadata^ groupMetadata,
SyncSession^ syncSession,
SyncContext^ syncContext,
IDbConnection^ connection,
IDbTransaction^ transaction
)
new :
groupMetadata:SyncGroupMetadata *
syncSession:SyncSession *
syncContext:SyncContext *
connection:IDbConnection *
transaction:IDbTransaction -> ChangesSelectedEventArgs
public function ChangesSelectedEventArgs(
groupMetadata : SyncGroupMetadata,
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.
- 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 selected.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | groupMetadata, syncSession, or syncContext is a null reference (Nothing in Visual Basic). |