Category Class (PIA)

Use this object to work with relationships between categories and products. You can also use this object to manipulate parent/child relationships for a category.

Methods

Method Description
AddChildCategory Adds another specified category as a child of this category.
AddParentCategory Adds another specified category as a parent of this category.
AddProduct Adds another specified product variant as a child of this category.
AddRelationshipToCategory Adds a relationship from another category to this category.
AddRelationshipToProduct Adds a relationship from this category to a specified product.
RemoveChildCategory Removes the specified category as a child of this category.
RemoveParentCategory Removes the specified category as a parent of this category.
RemoveProduct Removes a product from this category.
RemoveRelationshipToCategory Removes the relationship between this category and a specified category.
RemoveRelationshipToProduct Removes the relationship between this category and a specified product.
Search Searches product and category data within the category and its children.
SetCategoryProperties Assigns new properties to a category.
SetRelatedCategories Updates category relationships.
SetRelatedProducts Updates product relationships.

Properties

Property Type Description
AncestorCategories ADODB26Lib._Recordset Contains a recordset of category names that exist anywhere above this category, and that directly or indirectly contain this category, in the hierarchy.

This property is read-only.

CatalogName String Contains the name of the catalog of which this Category object is a member.

This property is read-only.

CategoryName String Contains the name of this category.

This property is read-only.

ChildCategories ADODB26Lib._Recordset Contains a recordset containing the child Category objects for this category.

This property is read-only.

DescendantProducts ADODB26Lib._Recordset Contains all products that exist anywhere below this category. Accessing this property on the root category returns every product in the entire catalog.

This property is read-only.

GetCategoryProperties ADODB26Lib._Recordset Contains a recordset containing the property values for this category.

This property is read-only.

ParentCategories ADODB26Lib._Recordset Contains a recordset containing the names of the Category objects that are parent categories to this category.

This property is read-only.

PrimaryParent BSTR Contains the primary parent category of this category.

This property is read/write.

Products ADODB26Lib._Recordset Contains the products that exist within this category, but not within descendant categories.

This property is read-only.

RelatedCategories ADODB26Lib._Recordset Contains a recordset that describes all of the categories and product families that have relationships to this category.

This property is read-only.

RelatedProducts ADODB26Lib._Recordset Contains a recordset that describes all the product variants and product families that have relationships to this category.

This property is read-only.

Remarks

The Category object is a dependent object. Obtain a reference to it by calling one of the following methods:

Requirements

Namespace: Microsoft.CommerceServer.Interop.Catalog

Platforms: Windows 2000, Windows Server 2003

Assembly: cataloglib (in cataloglib.dll)

Copyright © 2005 Microsoft Corporation.
All rights reserved.