DataTransaction Class

Definition

Enables transaction-processing, which allows you to commit or roll back a series of related operations as a batch.

public ref class DataTransaction abstract : Microsoft::VisualStudio::Data::Framework::DataSiteableObject<Microsoft::VisualStudio::Data::Services::IVsDataConnection ^>, Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataTransaction
public abstract class DataTransaction : Microsoft.VisualStudio.Data.Framework.DataSiteableObject<Microsoft.VisualStudio.Data.Services.IVsDataConnection>, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataTransaction
type DataTransaction = class
    inherit DataSiteableObject<IVsDataConnection>
    interface IVsDataTransaction
Public MustInherit Class DataTransaction
Inherits DataSiteableObject(Of IVsDataConnection)
Implements IVsDataTransaction
Inheritance
Implements

Constructors

DataTransaction()

Instantiates a new instance of the DataTransaction class.

DataTransaction(IVsDataConnection)

Instantiates a new instance of the DataTransaction class, specifying a data connection.

Properties

CurrentTransactionLevel

Gets a numeric value indicating the current transaction level.

Site

Gets or sets the object site.

(Inherited from DataSiteableObject<T>)

Methods

BeginTransaction()

Initiates a transaction and returns the new current transaction level.

CommitTransaction()

Commits a transaction and returns the new current transaction level.

OnSiteChanged(EventArgs)

Raises the SiteChanged event.

(Inherited from DataSiteableObject<T>)
RollbackTransaction()

Rolls back, or voids, a transaction and returns the new current transaction level.

Events

SiteChanged

Occurs when the Site property is changed.

(Inherited from DataSiteableObject<T>)

Applies to