IProduct3::get_AncestorCategories Property [C++]

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

[C++]

HRESULT IProduct3::get_AncestorCategories(_Recordset**AncestorCategories);

[Visual Basic]

Property AncestorCategories As Recordset

Parameters

  • AncestorCategories[C++]
    [out, retval] The address of a pointer to a _Recordset object used to return the ancestor categories.

[Visual Basic] None.

[C++]

Return Values

This method returns an HRESULT indicating whether it completed successfully. See the Error Values section for more details.

Error Values

[C++] This method returns S_OK (0x00000000) to indicate success and either standard or custom COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors.

[Visual Basic] This property 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 property can return.

Constant Value Description
E_CAT_INVALID_RS_POINTER

[C++] 0x889800B7

[Visual Basic] &H889800B7

The recordset pointer that you specified is invalid.

[C++] Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

[Visual Basic] Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

[C++] The AncestorCategories parameter contains valid data only if the property was accessed successfully.

[Visual Basic] 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, called Name.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

See Also

[C++]Product Object

[Visual Basic]Product Object

[C++]IProduct3::get_ParentCategories

[Visual Basic]Product.ParentCategories

Copyright © 2005 Microsoft Corporation.
All rights reserved.