Hi @stefan.palm ,
If you are using a VaultBrowserControl, and want to show the category icon in a column, you can make use of the CategoryGlyph property like below:. This should show up the icon in the grid.
initialConfig.AddInitialColumn(VDF.Vault.Currency.Properties.PropertyDefinitionIds.Server.CategoryGlyph);
If you are however interested to extract the image, please use the below code:
PropertyDefinitionDictionary props = m_conn.PropertyManager.GetPropertyDefinitions(
VDF.Vault.Currency.Entities.EntityClassIds.Files,null, PropertyDefinitionFilter.IncludeAll);
PropertyDefinition catProp = props[PropertyDefinitionIds.Server.CategoryGlyph];
ImageInfo category= m_conn.PropertyManager.GetPropertyValue(Fileiteration, catProp, null) as ImageInfo;
Image img = category.GetImage(); // System.Drawing.Image object
Hope this helps.
Regards,
Sajith
Sajith Subramanian
Autodesk Developer Network