AI OnAI Off
Hi Adam!
Check out the EPiServer.DataAbstraction.DynamicProperty class, it contains a static member ListForPage(PageReference) which returns a collection of DynamicProperty properties for the page.
Using the DynamicProperty class you can see by the Status member wether the value is set for the page, inherited from ancestors or not set at all.
Best regards,
Johan
Many thanks for your reply.
I can also check to see if :
DynamicProperty.Load(EPiServer.Global.EPConfig.StartPage, propertyName)
returns null, which seems to work.
/\dam
How can I access the global dynamic property list in EPiServer 4?
For diagnostic purposes, I want to check for the existence of various dynamic properties in the system (so we know if they are not present they need to be imported).
However, some properties may exist but not be set on any pages, in which case checking particular pages always gives me the same null response as if the property were not in the system at all.
I would therefore like to query the global system list of dynamic propeties to check what is present. Can anybody point me to the correct syntax to use?
Thanks,
/\dam