Partilhar via


IVsDataConnection.Lock Method

Definition

Overloads

Lock()

Locks the current data connection.

Lock(Int32)

Locks the current data connection.

Lock()

Locks the current data connection.

public:
 void Lock();
public void Lock ();
abstract member Lock : unit -> unit
Public Sub Lock ()

Applies to

Lock(Int32)

Locks the current data connection.

public:
 bool Lock(int lockTimeout);
public bool Lock (int lockTimeout);
abstract member Lock : int -> bool
Public Function Lock (lockTimeout As Integer) As Boolean

Parameters

lockTimeout
Int32

The amount of time, in seconds, to wait for the data connection to lock before returning.

Returns

A Boolean value indicating whether the lock was successful within the specified time-out period.

Applies to