Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.