This method retrieves the value of a property from the current result record, as shown in Table 24 and Table 25.

Table 24. HRESULT GetProperty

Parameter

Description

propertyName

Name of the property you want to retrieve

pValue

Points to a VARIANT structure that on return contains the property value

 

Table 25. HRESULT GetProperty Result

HRESULT

Description

S_OK

Property value was retrieved.

WBEM_E_NOT_FOUND

There is no property with the name.

E_NOT_VALID_STATE

There is no current record.

 

Note   The GetProperty method can return other WMI error codes other than those listed in Table 25. The values listed are the common results that are returned.

Related Topics

IWmiIteration Interface