Composite.Data.PageNode.GetPageNodes C# (CSharp) Method

GetPageNodes() public method

Returns PageNode elements that is with the SitemapScope of this page-
public GetPageNodes ( SitemapScope scope ) : IEnumerable
scope SitemapScope The scope.
return IEnumerable
        public IEnumerable<PageNode> GetPageNodes(SitemapScope scope) 
        {
            if (scope < SitemapScope.Current || scope > SitemapScope.SiblingsAndSelf) throw new ArgumentOutOfRangeException("scope");

            foreach (Guid pageId in GetPageIds(scope))
	        {
                var page = PageManager.GetPageById(pageId);

	            if (page != null)
	            {
                    yield return new PageNode(page, _sitemapNavigator);
	            }
	        }
        }