[This is preliminary documentation and subject to change.]
The DWbemClassObject.GetPropertyOrigin method gets 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, the current class name is always returned.
DWbemClassObject.GetPropertyOrigin(
[in] Name As String,
[out] strClassName As String
) As Long
WBEM_E_FAILED | Unspecified error. |
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. |