I'm writing a library, making use of the C# K2 APIs, which determines which smartobjects (SMOs) and methods are in an inconsistent state. I've been able to do this sucessfully but I cannot find a way to get the category a SMO is associated with.
In the smart object tester you can see the category a SMO is associated with, as it appears under a folder icon. I'd like to get the same information programatically.
I was hoping to find the category information inside an instance of the SmartObjectInfo class (e.g. within the Metadata property) but it does not appear to be there.
I also had a brief look at the SourceCode.Categories.Client.dll library, and was hoping to find a method where I could determine the category of a SMO, but I couldn't find anything.
Can anyone let me know how I can use the K2 API to get at the category info for a SMO?