IProductCatalog::get_RootProducts
The RootProducts property is a read-only recordset that contains the products that exist at the root level of a catalog.
Definition
HRESULT IProductCatalog::get_RootProducts(_Recordset**RootProducts);
Parameters
RootProducts
[out, retval] A Recordset used to return the root products.
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 RootProducts parameter contains valid data only if the property was accessed successfully.
Any product that is not contained within a category is considered to be a root product.
The Recordset object returned by this method will contain all of the corresponding fields. For more information about these fields, see CatalogProduct Recordset.
Products added by importing a comma-separated value (CSV) file will be root products.
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.