ConnectionManager.LockTimeout 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
LockTimeout 是指幾秒鐘內的鎖定超時。 預設 -1 是無限期的。 對於所有其他負數都會拋出 InvalidPropertyValueException。 正鎖定超時會乘以 1000,然後用於「設定LOCK_TIMEOUT」設定。
public int LockTimeout { get; set; }
member this.LockTimeout : int with get, set
Public Property LockTimeout As Integer