ConnectionManager.LockTimeout 属性
获取或设置在锁定当前事务时连接超时所需的时间(秒)。
命名空间: Microsoft.SqlServer.Management.Common
程序集: Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)
语法
声明
Public Property LockTimeout As Integer
Get
Set
用法
Dim instance As ConnectionManager
Dim value As Integer
value = instance.LockTimeout
instance.LockTimeout = value
public int LockTimeout { get; set; }
public:
property int LockTimeout {
int get ();
void set (int value);
}
member LockTimeout : int with get, set
function get LockTimeout () : int
function set LockTimeout (value : int)
属性值
类型:Int32
一个 Int32 值,该值指定在锁定当前事务时连接超时所需的时间(秒)。