Share via


AdoDotNetConnectionSupport.CurrentTransactionLevel Property

Retrieves the current transaction level.

Namespace:  Microsoft.VisualStudio.Data.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property CurrentTransactionLevel As Integer
'Usage
Dim instance As AdoDotNetConnectionSupport 
Dim value As Integer 

value = instance.CurrentTransactionLevel
public virtual int CurrentTransactionLevel { get; }
public:
virtual property int CurrentTransactionLevel {
    int get ();
}
public function get CurrentTransactionLevel () : int

Property Value

Type: System.Int32
Returns an integer representation of the current transaction level.

Remarks

The base implementation assumes only one level of transactions is supported by the provider and returns 1 if in a transaction and 0 otherwise.

.NET Framework Security

See Also

Reference

AdoDotNetConnectionSupport Class

AdoDotNetConnectionSupport Members

Microsoft.VisualStudio.Data.AdoDotNet Namespace