Umbraco中获取当前Umbraco Page的IPublishedContent

Umbraco 中获取当前所在的Umbraco Page所在的IPublishedContent, 可以使用如下语句

UmbracoHelper(ContextHelpers.EnsureUmbracoContext()).TypedContent(ContextHelpers.EnsureUmbracoContext().PageId);

猜你喜欢

转载自www.cnblogs.com/wphl-27/p/9334703.html