sitecore中的item.Axes.GetDescendants()和item.Axes.selectitems()之间的根本区别是什么

Sun*_*her 2 sitecore sitecore8

sitecore item.Axes.GetDescendants()item.Axes.selectitems()sitecore 之间的基本/性能差异是什么?

Mar*_*lak 5

item.Axes.GetDescendants()获取item使用Sitecore API的所有后代.它调用item.Children,然后再child.Children递归地为每个孩子.它将所有这些项添加到数组中.

item.Axes.Selectitems(string query) 执行在当前项的上下文中的参数中传递的Sitecore查询.

所以这两种方法完全不同.