DeviceManager.checkDeviceModel Method¶
Module: DeviceManager
Definition¶
Verifies the existence of a specified device model within the system, providing a mechanism to determine if a device model is recognized and managed by the device manager.
check_device_model(model_name: str) -> bool
Parameters
model_name
strin The name of the device model to verify.
Returns
bool
Outputs the verification resultThis parameter will contain true if the specified device model exists and is currently managed by the device manager, or false if the device model is not recognized.
Exceptions
An error has occurred during Devices Library execution.
static bool checkDeviceModel(String? modelName)
Parameters
modelName
Stringin The name of the device model to verify.
Returns
bool
Outputs the verification resultThis parameter will contain true if the specified device model exists and is currently managed by the device manager, or false if the device model is not recognized.
Exceptions
An error has occurred during Devices Library execution.
public static bool CheckDeviceModel(string modelName)
Parameters
modelName
stringin The name of the device model to verify.
Returns
bool
Outputs the verification resultThis parameter will contain true if the specified device model exists and is currently managed by the device manager, or false if the device model is not recognized.
Exceptions
An error has occurred during Devices Library execution.
public static boolean checkDeviceModel(String modelName) throws DevicesException
Parameters
modelName
Stringin The name of the device model to verify.
Returns
boolean
Outputs the verification resultThis parameter will contain true if the specified device model exists and is currently managed by the device manager, or false if the device model is not recognized.
Exceptions
An error has occurred during Devices Library execution.
int id3DevicesDeviceManager_CheckDeviceModel (
const char * modelName,
bool * result)
Parameters
modelName
const char *in The name of the device model to verify.result
bool *out Outputs the verification result
Returns