DWbemClassObject.GetPropertyOrigin

[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
 

Parameters

Name
The property name for which the parent class name is desired.
ClassName
String that will contain the name of the class in which a particular property was introduced.

Return Values

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.

See Also

DWbemClassObject.InheritsFrom