GetError method of the CIM_ConcreteJob class
When the job is executing or has terminated without error, then this method returns no CIM_Error instance. However, if the job has failed because of some internal problem or because the job has been terminated by a client, then a CIM_Error instance is returned.
Important The DMTF (Distributed Management Task Force) CIM (Common Information Model) classes are the parent classes upon which WMI classes are built. WMI currently supports only the CIM 2.x version schemas.
Syntax
uint32 GetError(
[out] string Error
);
Parameters
- Error [out]
If the OperationalStatus on the Job is not "OK", then this method will return a CIM Error instance. Otherwise, when the Job is "OK", null is returned.
Return value
This method returns one of the following values.
Success (0)
Not Supported (1)
Unspecified Error (2)
Timeout (3)
Failed (4)
Invalid Parameter (5)
Access Denied (6)
DMTF Reserved (4098..32767)
Vendor Specific (32768..65535)
Requirements
Namespace |
Root\CIMV2 |