Share via


Transaction Members

Include Protected Members
Include Inherited Members

A transaction makes sure that changes that were made to the store are treated as a group that can be committed or rolled back.

The Transaction type exposes the following members.

Methods

 

Name

Description

Public method

Commit

Commits the transaction.

Public method

CreateObjRef

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)

Public method

Dispose

Disposes the state of the transaction.

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Finalizes the transaction. (Overrides Object.Finalize().)

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetLifetimeService

Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Public method

InitializeLifetimeService

Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)

Protected method

MemberwiseClone

Overloaded.

Public method

Rollback

The Store will be set back to the state that it was in when the transaction was created.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Top

Properties

 

Name

Description

Public property

Context

Gets the transaction and enables clients to append user data to the transaction.

Public property

ContextInstance

Gets the Context for this transaction.

Public property

ForceAllRulesToCommitTime

Gets or sets a flag that forces all nested rules to occur at LocalCommit time for the current transaction.

Public property

HasPendingChanges

Gets the transaction and verifies whether changes to the store have been made during this transaction.

Public property

Id

Gets the ID for this transaction.

Public property

InRollback

Gets the transaction and verifies whether this transaction is being rolled back.

Public property

IsActive

Gets the transaction and verifies whether this transaction is processing.

Public property

IsHidden

Gets the transaction and verifies whether the transaction is hidden.

Public property

IsNested

Gets the transaction and verifies whether a transaction is nested within another transaction.

Public property

IsSerializing

Gets the transaction and verifies whether the transaction is currently serializing.

Public property

Name

Gets or sets the name of the transaction.

Public property

Parent

Gets the top-level transaction that is assigned to the nested transaction.

Public property

PartitionStates

Gets information about the state of all partitions in the store.

Public property

SequenceNumber

Gets the sequence number for the transaction.

Public property

Store

Gets the store to which the transaction belongs.

Public property

TopLevelTransaction

Gets the top-level transaction of the transaction hierarchy.

Public property

TransactionDepth

Gets the number of transactions in which this transaction is nested.

Top

See Also

Reference

Transaction Class

Microsoft.VisualStudio.Modeling Namespace