var a = Nodes.Children.Where("CustomProperty == @0", "Value"(.第一((;
抛出错误 {"类型'IPublishedContent'中不存在属性或字段'自定义属性'"}
您需要使用强类型模型 - 例如:
var a = Nodes.Children<PageType>.Where(p => p.CustomProperty == "Value").First();
Umbraco 8 中不再有动态功能,并且 API 已简化。 看看Shannon Deminick今年早些时候在uDuf会议上的"备忘单":
https://shazwazza.com/media/1032/uduf-2019.pdf