次の方法で共有


AncestorCategoryNames Property

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

Gets a collection containing names of all categories that are above this category in the category hierarchy.

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

Syntax

'Declaration
Public ReadOnly Property AncestorCategoryNames As ReadOnlyStringCollection
'Usage
Dim instance As CatalogItem
Dim value As ReadOnlyStringCollection

value = instance.AncestorCategoryNames
public ReadOnlyStringCollection AncestorCategoryNames { get; }
public:
property ReadOnlyStringCollection^ AncestorCategoryNames {
    ReadOnlyStringCollection^ get ();
}
public function get AncestorCategoryNames () : ReadOnlyStringCollection

Property Value

Type: Microsoft.CommerceServer.Runtime..::.ReadOnlyStringCollection
A ReadOnlyStringCollection that contains the names of all categories that are above this category in the category hierarchy.

Remarks

Returns a list of all of the names of the ancestor categories of this catalog item (all parent categories, recursively). If this category is a root category, the returned array is empty. The list of ancestor category names is cached. Call the Refresh method to explicitly refresh this cached data.

Permissions

See Also

Reference

CatalogItem Class

CatalogItem Members

Microsoft.CommerceServer.Catalog Namespace