When trying to modify a SPContentType-object you need to get the object from the SPWeb.ContentTypes member. When you try to modify a SPContentType-object from the SPWeb.AvailableContentTypes member, you will get an exception "The collection cannot be modified.".
Advertisements