GraphTransactionScope Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a highly optimized wrapper around System.Transactions.TransactionScope. This extensively uses thread local storage and is therefore thread-bound. GraphTransactionScope is meant to be called from a using() class, same as TransactionScope.

System.Object
  Microsoft.VisualStudio.GraphModel.GraphTransactionScope
    Microsoft.VisualStudio.GraphModel.UndoableGraphTransactionScope

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

public class GraphTransactionScope : IDisposable

The GraphTransactionScope type exposes the following members.

  NameDescription
Public methodGraphTransactionScope()Constructor. This associates this GraphTransactionScope with ones on outer scope blocks by using a TLS variable.
Public methodGraphTransactionScope(String)Constructor. This associates this GraphTransactionScope with ones on outer scope blocks by using a TLS variable.
Public methodGraphTransactionScope(Transaction)Constructor. This associates this GraphTransactionScope with ones on outer scope blocks by using a TLS variable.
Public methodGraphTransactionScope(GraphTransactionScopeOptions)Constructor. This associates this GraphTransactionScope with ones on outer scope blocks by using a TLS variable.
Top

  NameDescription
Public propertyScopePropertiesThe property bag associated with this scope.
Top

  NameDescription
Public methodCompleteMark us as completed. Dispose will check this and if this wasn't called, the transaction will abort.
Public methodDispose()IDisposable.Dispose.
Protected methodDispose(Boolean)Dispose implementation
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft