Given an SPListItem representing a folder, I need to find out whether it has the builtin folder content type, or a custom folder content type (with additional fields).
Here is what I do
SPContentType folderType = aFolderItem.Web.AvailableContentTypes[SPBuiltInContentTypeId.Folder];
SPContentType contentType = aFolderItem.ContentType;
if ( contentType != folderType )
...
However, for default folders I still get a different content type than the built in type. They have IDs like 0x0120007C34D9760794FA43AB267F4E1A1BF460 . I m not sure where this particular GUID suffix comes from, I can t find it in any of the definition of my features folder.
My best guess is that instantiated folders always get a custom type. If that s the case, any suggestion on how I might be able to differentiate between builtin folders and custom folders?