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

I am creating some content types programaticaly and have set the sealed flag to true which seems to prevent deletion by users and code. First how can it be deleted? Second, what is the proper way to create a content type that I don't want users to change unless it is done programaticaly?

share|improve this question
2  
I noticed that grammatically changing the sealed property back to false allows deletion. so apparently I have my answers. –  ChiliYago Jun 21 '13 at 22:58

1 Answer 1

up vote 1 down vote accepted

Sealed

Optional Boolean. TRUE to prevent changes to this content type. You cannot change the value of this attribute through the user interface, but you can change it in code if you have sufficient rights. You must have site collection administrator rights to unseal a content type.

If you do not include this attribute, SharePoint Foundation treats the content type as if the attribute was set to FALSE.

You need to unseal the content type to delete or change it using the GUI, and you do that with Site Collection Adminstrator rights. In code you can change it if you have sufficient rights, as I understand it, at least contribute rights.

Reference: ContentType Element (ContentType)

share|improve this answer

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.