Product.AncestorCategories
The AncestorCategories property is a read-only Recordset object that contains the names of categories that exist anywhere above this product in the hierarchy.
Definition
Property AncestorCategories As Recordset
Parameters
None.
Error Values
This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to either standard or custom COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors.
The following table shows the custom COM errors that this method can return.
Constant | Value | Description |
E_CAT_CIRCULAR_REFERENCE | &H88980037 | Circular referencing is not supported. A circular reference would put a category in more than one place in the hierarchy. |
Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.
Remarks
The AncestorCategories property contains valid data only if it was accessed successfully.
The AncestorCategories property is a Recordset object with a single 128-character field, named Name.
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.