Category3.RelatedProducts Property (PIA)
The RelatedProducts property is a read-only recordset containing information about all products related to this category.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Catalog
Import ADODB26Lib ‘ for _Recordset
…
Public Property RelatedProducts As _Recordset
[C#]
using Microsoft.CommerceServer.Interop.Catalog;
using ADODB26Lib; //For _Recordset
…
public _Recordset RelatedProducts{ get;}
[C#]
Property Values
An ADODB26Lib._Recordset interface to a Recordset object containing the related products.
Exceptions
This property may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
The following table shows the custom COM errors that a COMException can wrap.
Constant | Value | Description |
---|---|---|
E_CAT_INVALID_OPERATION_FOR_ROOT_CATEGORY | [C#] 0x889800F8 [Visual Basic .NET] &H889800F8 |
This API cannot be called for a root category. |
E_CAT_INVALID_RS_POINTER | [C#] 0x889800B7 [Visual Basic .NET] &H889800B7 |
The recordset pointer that you specified is invalid. |
Remarks
The Recordset returned contains one row for each relationship present.
The following table shows the fields in the returned Recordset.
Field | Data Type | Description |
---|---|---|
<defined ProductID field> | Varies | The unique product identifier, defined during catalog creation. |
RelationshipName | String maximum of 128 characters |
The name of the relationship. |
RelationshipDescription | String maximum of 256 characters |
The description of the relationship. |
Requirements
Namespace: Microsoft.CommerceServer.Interop.Catalog
Platforms: Windows 2000, Windows Server 2003
Assembly: cataloglib (in cataloglib.dll)
See Also
Category3.AddRelationshipToProduct
Category3.RemoveRelationshipToProduct
Copyright © 2005 Microsoft Corporation.
All rights reserved.