ProductCatalog3.RootProducts Property (PIA)
The RootProducts property is a read-only Recordset that contains the products that exist at the root level of a catalog.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Catalog
Import ADODB26Lib ‘ for _Recordset
…
Public ReadOnly Property RootProducts As _Recordset
[C#]
using Microsoft.CommerceServer.Interop.Catalog;
using ADODB26Lib; //For _Recordset
…
public _Recordset RootProducts {get;}
Property Value
A _Recordset interface to a Recordset containing the root products.
Exceptions
This property may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
Remarks
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.
The following table shows the custom COM errors that COMException may wrap as exceptions for this method.
Constant | Value | Description |
---|---|---|
E_CAT_INVALID_RS_POINTER | [C#] 0x889800B7 [Visual Basic .NET] &H889800B7 |
The recordset pointer that you specified is invalid. |
[Visual Basic .NET]
Example
rsRootProducts = myProductCatalog.RootProducts
Requirements
Namespace: Microsoft.CommerceServer.Interop.Catalog
Platforms: Windows 2000, Windows Server 2003
Assembly: cataloglib (in cataloglib.dll)
See Also
ProductCatalog3.RootCategories
Copyright © 2005 Microsoft Corporation.
All rights reserved.