Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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.