TransactionManager Class
Creates Transaction objects and keeps track of the current active transaction.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.TransactionManager
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
‘선언
Public Class TransactionManager
public class TransactionManager
public ref class TransactionManager
type TransactionManager = class end
public class TransactionManager
The TransactionManager type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TransactionManager | Initializes a new instance of the TransactionManager class. |
Top
Properties
Name | Description | |
---|---|---|
CurrentTransaction | Gets the current active transaction. | |
InTransaction | True if there is an active transaction. | |
Store | Gets the store that this TransactionManager is part of. | |
TransactionDepth | Gets the depth of the nested transactions. |
Top
Methods
Name | Description | |
---|---|---|
AddCanCommitCallback | Register a delegate that can vote on whether a Commit() is allowed. | |
BeginTransaction() | Creates a new transaction object with a given name and returns a reference to it. | |
BeginTransaction(String) | Creates a new transaction object with a given name and returns a reference to it. | |
BeginTransaction(String, Boolean) | Creates a new transaction object with a given name and returns a reference to it. | |
BeginTransaction(String, Boolean, TransactionContext) | Creates a new transaction object with a given name and returns a reference to it | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveCanCommitCallback | Removes a delegate from the voting list. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
For examples and more information, see Using Transactions.
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.
See Also
Reference
Microsoft.VisualStudio.Modeling Namespace
Change History
Date |
History |
Reason |
---|---|---|
July 2010 |
Added info. |
Customer feedback. |