次の方法で共有


AncestorCategories Property

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

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

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

Syntax

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

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

Property Value

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

Remarks

The multilingual information for the ancestor categories will be in the current ActiveLanguage of the catalog item. The returned dataset will contain all one row for each ancestor category for the catalog item. The dataset will contain all the properties in the catalog. You cannot make any changes to this dataset.

A collection containing the ancestor categories of this catalog item (all parent categories, recursively).

The returned collection contains the following properties:

Permissions

See Also

Reference

CatalogItem Class

CatalogItem Members

Microsoft.CommerceServer.Catalog Namespace