UFT Pro (LeanFT) .NET SDK Reference, Version 14.03
LockDevice Method (MobileLab)
Example 
Obtains a device from the Mobile Center lab and locks it, so that only the current LeanFT test can perform actions on it.
Overload List
OverloadDescription
LockDevice(DeviceDescription)Obtains a device from the Mobile Center lab and locks it, so that only the current LeanFT test can perform actions on it.  
LockDevice(DeviceDescription,ApplicationDescription[])Obtains a device from the Mobile Center lab and locks it, so that only the current LeanFT test can perform actions on it.  
LockDevice(DeviceDescription,ApplicationDescription[],DeviceSource)Obtains a device from the Mobile Center lab and locks it, so that only the current LeanFT test can perform actions on it.  
LockDevice(DeviceDescription,DeviceSessionOptions)Obtains a device from the Mobile Center lab and locks it, so that only the current LeanFT test can perform actions on it.  
Example
// Lock a device by name.
var device = MobileLab.LockDeviceByName("MyDevice");