Share via


Product3.RelatedCategories Property (PIA)

The RelatedCategories property is a read-only Recordset object that contains the names of categories that are related to this product.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Catalog
Imports ADODB26Lib     ' for _Recordset
…
Public ReadOnly Property RelatedCategories As _Recordset

[C#]

using Microsoft.CommerceServer.Interop.Catalog;
using ADODB26Lib;                              //For _Recordset
…
public _Recordset RelatedCategories {get; set;}

Property Value

A _Recordset interface****to an ADODB26Lib.Recordset containing the related categories.

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_RS_POINTER

[C#] 0x889800B7

[Visual Basic .NET] &H889800B7

The recordset pointer that you specified is invalid.

Remarks

[Visual Basic .NET]

The RelatedCategories property contains valid data only if it was accessed successfully.

The returned recordset contains one column 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.

[C#]

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.

Requirements

Namespace: Microsoft.CommerceServer.Interop.Catalog

Platforms: Windows 2000, Windows Server 2003

Assembly: Cataloglib (in Cataloglib.dll)

See Also

Product3 Class

Product3.RelatedProducts

Product3.AddRelationshipToCategory

Copyright © 2005 Microsoft Corporation.
All rights reserved.