I am developing VSTO addin using C#.
Here, I have drag one file from my PC to outlook folder. It displays in outlook as show in picture.
Now I want to add one column in that folder.
I have done some code to add custom column in folder. It will display in picture. Column name is ABCDEFGHI.
I want to update the value of ABCD.pdf file property.
As per outlook ABCD.pdf is a DocumentItem. I want to add my custom property for that file, to display in view.
This is my sample code.
UserProperties objUserProperties = objItem.UserProperties;
UserProperty objUserProperty = objUserProperties.Add("ABCDEFGHI", OlUserPropertyType.olText);
objt.Value = "YYYY";
This will give me an error.

