Share via


RelatedCategories Property

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

Returns the categories related to the current catalog item.

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

Syntax

'Declaration
Public ReadOnly Property RelatedCategories As CatalogRelationshipsDataSet
'Usage
Dim instance As CatalogItem
Dim value As CatalogRelationshipsDataSet

value = instance.RelatedCategories
public CatalogRelationshipsDataSet RelatedCategories { get; }
public:
property CatalogRelationshipsDataSet^ RelatedCategories {
    CatalogRelationshipsDataSet^ get ();
}
public function get RelatedCategories () : CatalogRelationshipsDataSet

Property Value

Type: Microsoft.CommerceServer.Catalog..::.CatalogRelationshipsDataSet
A CatalogRelationshipsDataSet containing the Catalog's relationships.

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