IProduct::get_RelatedCategories
The RelatedCategories property is a read-only Recordset object that contains the names of categories that are related to this product.
Definition
HRESULT IProduct::get_RelatedCategories(_Recordset**RelatedCategories);
Parameters
RelatedCategories
[out, retval] A _Recordset used to return the related categories.
Return Values
This method returns an HRESULT indicating whether it completed successfully. See the Error Values section for more details.
Error Values
This method returns S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. 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.
Remarks
The RelatedCategories parameter contains valid data only if the property was accessed successfully.
The returned recordset contains one row for each relationship present.
The returned recordset contains the following fields:
Field | Data Type | Description |
CategoryName | String Maximum of 128 characters |
Name of the category. |
RelationshipName | String Maximum of 128 characters |
Name of the relationship. |
RelationshipDescription | String Maximum of 256 characters |
Description of the relationship. |
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.