Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using this (and similar)

C#
IShellProperty Commentsprop = ShellObject.FromParsingName(Filename).Properties.GetProperty("System.Comment");
SetPropertyValue(Comments, Commentsprop);


to get (and set) properties in files. Works fine, but nowhere can I find any info on string lengths and such, specifically the max length for the properties "Comment" and "Keywords" (Tags).

Anyone know what the limits are? While not impossible, I think it's kind of icky if you can put in a novel for a Comment, or add a bazillion Tags.
Posted
Updated 24-Oct-10 3:50am
v2

1 solution

If you mean the max length of the link descrption/comment, then it seems to be INFOTIPSIZE which is 1024 I think.
 
Share this answer
 
Comments
GenJerDan 24-Oct-10 10:30am    
The Comment and Keyword (Tags is the friendly name) I'm asking about are the ones you get if you right-click a file and select Properties | Details. Is that the same structure?
Nish Nishant 24-Oct-10 10:53am    
Ah that's different. I believe the structure that's used to represent those tags allow a count property (which specifies the length). So theoretically it can be as long as you want it to, although there may be hard-limits enforced by the UI or by the file-system.
GenJerDan 24-Oct-10 11:52am    
Ah, ok. I'll just set them to 500 and hope for the best. If anyone runs up against a shorter limit, I'm sure they'll let me know. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900