IVsDataConnection.Lock Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.