Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there a flag / property to identify custom content types in SharePoint 2010 ? I know when creating new content types its possible to put them in a group (for exc. custom content types), but is it somehow possible to find out if existing content types are out of the box or custom created ? I mean is there something like a flag or property that can be queried with powershell/console application to find out if a content type is custom ?

Thanks a lot for answers !

share|improve this question
add comment

3 Answers 3

SPBuiltInContentTypeID: A class that retrieves SPContentTypeId objects that represent identifiers (IDs) for built-in content types.

share|improve this answer
add comment

As far as I know, there is no such flag/property. But luckily built in content type ids are documented:

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbuiltincontenttypeid_members.aspx

You can use it to compare your content type's id to determine if its custom or OTB.

share|improve this answer
add comment

Comparing my custom content type id with the list of avaliable SPBuiltInContentTypeIDs doesnt seem to work - there are a lot more built-in content types that have not been documented here http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbuiltincontenttypeid_members.aspx

for eg: video, audio, indicaors, reports - these are available OOTB with SP, but are not listed in the above link.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.