共用方式為


TransactionManager.InTransaction Property

True if there is an active transaction.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'宣告
Public ReadOnly Property InTransaction As Boolean
    Get
public bool InTransaction { get; }
public:
property bool InTransaction {
    bool get ();
}
member InTransaction : bool
function get InTransaction () : boolean

Property Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

TransactionManager Class

Microsoft.VisualStudio.Modeling Namespace