OnlineDevice method of the CIM_NumericSensor class
Note
This method is deprecated. Instead we recommend that you use the RequestStateChange method.
Brings the sensor online so it can accept requests, or offline so it can no longer accept requests.
This method is inherited from CIM_LogicalDevice.
Syntax
uint32 OnlineDevice(
[in] boolean Online
);
Parameters
-
Online [in]
-
Indicates whether the sensor is to accept requests. True to accept requests, otherwise false.
Return value
A return code that indicates whether the operation completed successfully.
-
0
The operation completed successfully.
-
1
The operation was not completed because it is not supported.
-
2
The operation is not supported when the device is in the current state.
-
3 ...
The operation was not completed because an error occurred.
Requirements
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Namespace |
Root\Hardware |
MOF |
|
DLL |
|