Share via


CreatingSchemaEventArgs.Transaction Property

Gets or sets an IDbTransaction object that contains the transaction within which the schema will be created.

Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in microsoft.synchronization.data.dll)

Syntax

'Declaration
Public ReadOnly Property Transaction As IDbTransaction
'Usage
Dim instance As CreatingSchemaEventArgs
Dim value As IDbTransaction

value = instance.Transaction
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 will be 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 Sync Services uses.

Example

For an example of how to access a database over the same connection and within the same transaction that Sync Services uses, see How to: Work with Events and Program Business Logic.

See Also

Reference

CreatingSchemaEventArgs Class
CreatingSchemaEventArgs Members
Microsoft.Synchronization.Data Namespace