Jaa


GetRelatedCategories Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

NOTE: This API is now obsolete.

(Obsolete) GetRelatedCategories should not be used, use RelatedCategories instead. Gets the categories related to the current catalog item.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use CatalogItem.RelatedCategories instead of CatalogItem.GetRelatedCategories")> _
Public Function GetRelatedCategories As CatalogRelationshipsDataSet
'Usage
Dim instance As CatalogItem
Dim returnValue As CatalogRelationshipsDataSet

returnValue = instance.GetRelatedCategories()
[ObsoleteAttribute("Use CatalogItem.RelatedCategories instead of CatalogItem.GetRelatedCategories")]
public CatalogRelationshipsDataSet GetRelatedCategories()
[ObsoleteAttribute(L"Use CatalogItem.RelatedCategories instead of CatalogItem.GetRelatedCategories")]
public:
CatalogRelationshipsDataSet^ GetRelatedCategories()
public function GetRelatedCategories() : CatalogRelationshipsDataSet

Return Value

Type: Microsoft.CommerceServer.Catalog..::.CatalogRelationshipsDataSet
A CatalogRelationshipsDataSet that contains the relalationships of the item.

Remarks

The multilingual information for the related categories will be in the current ActiveLanguage of the catalog item. The returned dataset will contain all one row for each related category. You can add new category relationships or delete existing category relationships by calling the AddRelationshipToCategory and RemoveRelationshipToCategory methods. If you add or remove relationships you should call the Save method to save the changes to the catalog system

Permissions

See Also

Reference

CatalogItem Class

CatalogItem Members

Microsoft.CommerceServer.Catalog Namespace