DWbemClassObject.InheritsFrom

[This is preliminary documentation and subject to change.]

The DWbemClassObject.InheritsFrom method determines if the current class or instance derives from a specified parent class.

DWbemClassObject.InheritsFrom(
  [in] strAncestor  As String
) As Long
 

Parameters

strAncestor
String containing the class name that is being tested. If the current object has this class for one of its ancestor classes, WBEM_NO_ERROR is returned.

Return Values

WBEM_NO_ERROR The current object inherits from the specified ancestor class.
WBEM_S_FALSE The current object does not inherit from the specified ancestor class.
WBEM_E_INVALID_PARAMETER The strAncestor parameter is vbNullString.

See Also

DWbemClassObject.GetPropertyOrigin