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:
all properties specified in ParentPropertiesToReturn.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.