I'm trying to change the content type name of a specified List.
I have a Content Type called (for example) ExampleCT that I change from Site Settings in "Example CT" pushing down changes to children.
Half of the Lists have been renamed as "Example CT", but in few other lists the name remains as "ExampleCT".
I tried in many way to "Rename" the Content Type in order I try to:
- Rename the Content Type getting it from the Web (web.ContentType)
- Rename the Content Type getting it from the List (list.ContentTypes)
- Rename the Content Type getting it from the RootFolder (list.RootFolder.ContentTypeOrder)
The operation is simply:
myCT.Name = "Example CT";
In each case I tried to update:
- Web
- List
- Content Type (Update, Update(true), Update(false), UpdateIncludingSealedAndReadOnly(true))
- RootFolder
But the name remain "ExampleCT".
Any suggestion? Thank you!