Свойство ServerConnection.TransactionDepth
Gets the current transaction depth for the referenced connection.
Пространство имен: Microsoft.SqlServer.Management.Common
Сборка: Microsoft.SqlServer.ConnectionInfo (в Microsoft.SqlServer.ConnectionInfo.dll)
Синтаксис
'Декларация
Public ReadOnly Property TransactionDepth As Integer
Get
'Применение
Dim instance As ServerConnection
Dim value As Integer
value = instance.TransactionDepth
public int TransactionDepth { get; }
public:
property int TransactionDepth {
int get ();
}
member TransactionDepth : int
function get TransactionDepth () : int
Значение свойства
Тип: System.Int32
An Int32 value that specifies the current transaction depth for the referenced connection.
Замечания
A connection can experience nested transactions. The transaction depth refers to the number of nested transactions.
Примеры
C#
ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.TransactionDepth);
PowerShell
$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
Write-Host $conn.TransactionDepth
См. также
Справочник
Пространство имен Microsoft.SqlServer.Management.Common