Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is there a way to create properties programmatically for a Document type using IContent. I also want to be able to rename properites.
I've come across a post using the Legacy Document object but want to use the new IContent object.
Thanks in Advance
Laith
Hi Laith,
Welcome to our!
I think you can do this with the ContentTypeService:
https://our.umbraco.org/documentation/Reference/Management-v6/Services/ContentTypeService
Hope this helps,
Best,
Sören
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Programatically Create/Rename Properties for a Document Type using IContent
Is there a way to create properties programmatically for a Document type using IContent. I also want to be able to rename properites.
I've come across a post using the Legacy Document object but want to use the new IContent object.
Thanks in Advance
Laith
Hi Laith,
Welcome to our!
I think you can do this with the ContentTypeService:
https://our.umbraco.org/documentation/Reference/Management-v6/Services/ContentTypeService
Hope this helps,
Best,
Sören
is working on a reply...