ApplyingChangesEventArgs.Transaction Property
Gets or sets an IDbTransaction object that contains the transaction within which changes to tables are applied.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in microsoft.synchronization.data.dll)
Syntax
'Declaration
Public Property Transaction As IDbTransaction
'Usage
Dim instance As ApplyingChangesEventArgs
Dim value As IDbTransaction
value = instance.Transaction
instance.Transaction = value
public IDbTransaction Transaction { get; set; }
public:
property IDbTransaction^ Transaction {
IDbTransaction^ get ();
void set (IDbTransaction^ value);
}
/** @property */
public IDbTransaction get_Transaction ()
/** @property */
public void set_Transaction (IDbTransaction value)
public function get Transaction () : IDbTransaction
public function set Transaction (value : IDbTransaction)
Property Value
An IDbTransaction object that contains the transaction within which changes to tables are applied.
Remarks
Use the transaction exposed by this property and the connection exposed by the Connection property to access a database over the same connection and within the same transaction that Sync Framework uses.
Example
For an example of how to access a database over the same connection and within the same transaction that Sync Framework uses, see How to: Work with Events and Program Business Logic.
See Also
Reference
ApplyingChangesEventArgs Class
ApplyingChangesEventArgs Members
Microsoft.Synchronization.Data Namespace