Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Differences between get children() and getdescendants() methods
1. Differences between GetChildren() and GetDescendants() Methods in Sitecore
S.No GetChildren() GetDescendants()
1 How it can be accessed ? How it can be accessed ?
This method can be accessed This method can be accessed as
as follows: follows:
itemObject.GetChildren(); itemObject.Axes.GetDescendants()
;
2 Items returned by Items returned by
GetChildren(): GetDescendants():
Returns all the direct children Returns all the items under an
of an item. item.
i.e. All the items present at
level 1 under the item.
3 How to find all the Children How to find all the Children
using GetChildren() ? using GetChildren() ?
If we need all the children, we If we want all the children, then Call
need to recursively call GetDescendants() method and we
GetChildren() method, for all have them all and no recursive
the items under a specific item. calls as like GetChildren(). So
This surely gonna consume that’s where this method seems
more time! good.
What is Sitecore ?
Sitecore is a web content management system software company that provides enterprise
website, intranet, portal and marketing automation software. The company was founded in
2001 and has offices in Australia, Denmark, Sweden, Canada, Germany, Japan,
Netherlands, United Kingdom, and United States.
Sitecore's software is built on Microsoft .NET 3.5/4.0. Content can be stored as XML or
.NET objects and Sitecore CMS can leverage either Microsoft SQL Server or Oracle
Database for its database storage, though MS SQL Server is the most popular.[citation
needed] Sitecore also allows deployment via Microsoft Azure.[1]
Reference:
http://varunvns.wordpress.com/tag/child/
http://en.wikipedia.org/wiki/Sitecore
And, further updates on difference between questions and answers, please visit my
blog @ http://onlydifferencefaqs.blogspot.in/