Just curious to know this. Suppose we have a site collection with 3 sites (1 root site + 2 sub-sites). We create a feature in VS to create a new list.
Foll. is the code:-
foreach (SPWeb web1 in site.AllWebs)
{
//create new list
}
Case 1:- Set the scope to Site.
Case 2: Set scope to Web.
In both above cases, a new list is created in each sub-site. Then, what is the purpose of feature scope?
Is it only to set a place from where this feature can be activated from? (Ex: Web :: Manage Site Feature; Site :: Manage Site Collection Features)?