Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
AI OnAI Off
Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
var block = contentLoader.Get<MyBlock>(item.ContentLink)
or
var block = contentLoader.Get<BlockData>(item.ContentLink) as MyBlock
Hi,
I'm trying to get a hold of a property belonging to the block, of type MyBlock, that I have in a ContentArea.
I have the following code:
The variable block is now of the type MyBlockProxy. How do I get it to be of type MyBlock so that I can get a hold of its properties?