Share via


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 値です。

関連項目

参照

ConnectionManager クラス

Microsoft.SqlServer.Management.Common 名前空間