SchemaCreatedEventArgs.Transaction Property
Gets or sets an IDbTransaction object that contains the transaction within which the schema was created.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in microsoft.synchronization.data.dll)
Syntax
'Declaration
Public ReadOnly Property Transaction As IDbTransaction
public IDbTransaction Transaction { get; }
public:
property IDbTransaction^ Transaction {
IDbTransaction^ get ();
}
/** @property */
public IDbTransaction get_Transaction ()
public function get Transaction () : IDbTransaction
Property Value
An IDbTransaction object that contains the transaction within which the schema was created.
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 Synchronization Services uses.
Example
For an example of how to access a database over the same connection and within the same transaction that Synchronization Services uses, see How to: Work with Events and Program Business Logic.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements (Synchronization Services).
Target Platforms
See Also
Reference
SchemaCreatedEventArgs Class
SchemaCreatedEventArgs Members
Microsoft.Synchronization.Data Namespace