[This is preliminary documentation and subject to change.]
The IWbemClassObject::GetPropertyOrigin method retrieves the name of the class in which a particular property was introduced. For classes with deep inheritance hierarchies, it is often desirable to know which properties were declared in which classes. If the object does not inherit from a parent class, as in the case of a base class, for example, then the current class name is always returned.
HRESULT IWbemClassObject::GetPropertyOrigin(
[in] BSTR bstrName,
[out] BSTR *pbstrClassName
);
WBEM_E_FAILED | General failure. |
WBEM_E_NOT_FOUND | The specified property does not exist. |
WBEM_E_OUT_OF_MEMORY | There was not enough memory to complete the operation. |
WBEM_NO_ERROR | Success. |
IWbemClassObject::InheritsFrom