Share via


Product.AncestorCategoryNames Property (BCL)

The AncestorCategoryNames property gets the names of all categories that are above this product in the category hierarchy.

Definition

[Visual Basic .NET]

Overridable Public ReadOnly Property AncestorCategoryNames As ReadOnlyStringCollection

[C#]

public virtual ReadOnlyStringCollection AncestorCategoryNames{get;} 

Property Value

ReadOnlyStringCollection object that contains the names of all categories that are above this product in the category hierarchy.

Remarks

This data is cached. To refresh it, call the CatalogContext.Refresh method explicitly.

If this product is a root product, the returned array is empty.

Throws a CatalogException on failure.

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Catalog

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

Copyright © 2005 Microsoft Corporation.
All rights reserved.