Partager via


IVsDataConnection.Lock Method (Int32)

Locks the current data connection.

Namespace:  Microsoft.VisualStudio.Data.Services
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'Declaration
Function Lock ( _
    lockTimeout As Integer _
) As Boolean
bool Lock(
    int lockTimeout
)
bool Lock(
    int lockTimeout
)
abstract Lock : 
        lockTimeout:int -> bool
function Lock(
    lockTimeout : int
) : boolean

Parameters

  • lockTimeout
    Type: System.Int32

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

Return Value

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

.NET Framework Security

See Also

Reference

IVsDataConnection Interface

Lock Overload

Microsoft.VisualStudio.Data.Services Namespace