GetProperty()
You can use the GetProperty() method
to retrieve the whole instance and return one specific property from this
instance.
Parameters
Table 222 shows the parameters you can specify for the
GetProperty() method:
Table 222. GetProperty() parameters
|
Parameter |
Type |
Description |
| InstanceName |
String |
Defines the name of the instance |
| Property |
String |
The name of the property whose value is to be returned
from the instance |
Return values
The GetProperty() method returns the specified property of the target instance
or one of the following error codes:
- CIM_ERR_ACCESS_DENIED
- CIM_ERR_INVALID_NAMESPACE
- CIM_ERR_INVALID_PARAMETER
- CIM_ERR_INVALID_CLASS
- CIM_ERR_NOT_FOUND
- CIM_ERR_NO_SUCH_PROPERTY
- CIM_ERR_FAILED