SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
       /// <summary>
   /// An item was added.
   /// </summary>
   public override void ItemAdded(SPItemEventProperties properties)


       var progId = properties.ListItem.ProgId;
       // If a content type of word doc 
       // was added for example, this property would be of string value Word.Document
       properties.ListItem.ProgId = "MyIdentifier.Identifier";

This is my current solution for setting the ProgId attribute for my custom listitems that are of custom content type. DocumentSet, Word documents and many other files inherit this attribute from somewhere - where exactly ?

From what i understood, this is a meta tag for html documents - i have no idea what to add to my feature.

Edit: Tried this in content type CAML, ProgId still not getting set for added listItems:

<ContentType ID="0x0120008d88d270aed24e86b061dd7977c54f31"


share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.