ArcGIS Pro 2.8 API Reference Guide
ItemCategories Property
Example 

ArcGIS.Desktop.Core Namespace > Item Class : ItemCategories Property
Gets a list of the item categories in which the item participates
Syntax
public List<ItemCategory> ItemCategories {get;}
Public ReadOnly Property ItemCategories As List(Of ItemCategory)
Example
// Get the ItemCategories with which an item is associated
Item gdb = ItemFactory.Instance.Create(@"E:\CurrentProject\RegionalPolling\polldata.gdb");
List<ItemCategory> gdbItemCategories = gdb.ItemCategories;
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Item Class
Item Members