ParentCategories Property

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

Gets a collection containing the parent categories for the current catalog item.

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

Syntax

'Declaration
Public ReadOnly Property ParentCategories As CategoryCollection
'Usage
Dim instance As CatalogItem
Dim value As CategoryCollection

value = instance.ParentCategories
public CategoryCollection ParentCategories { get; }
public:
property CategoryCollection^ ParentCategories {
    CategoryCollection^ get ();
}
public function get ParentCategories () : CategoryCollection

Property Value

Type: Microsoft.CommerceServer.Catalog..::.CategoryCollection
A CategoryCollection containing the parent categories for the current catalog item.

Remarks

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

The returned collection contains the following properties:

Permissions

See Also

Reference

CatalogItem Class

CatalogItem Members

Microsoft.CommerceServer.Catalog Namespace