Open topic with navigation

LockDevice Method (MobileLab)
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

Overload | Description
--- | ---
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");